salix/modules/worker/front/pda/index.js

22 lines
477 B
JavaScript
Raw Normal View History

import ngModule from '../module';
import Section from 'salix/components/section';
class Controller extends Section {
constructor($element, $) {
super($element, $);
}
2024-05-17 12:46:49 +00:00
async $onInit() {
const url = await this.vnApp.getUrl(`worker/${this.$params.id}/pda`);
console.log('url: ', url);
window.location.href = url;
}
}
2024-05-17 12:46:49 +00:00
ngModule.vnComponent('vnClaimPhotos', {
controller: Controller,
2024-05-17 12:46:49 +00:00
bindings: {
claim: '<'
}
});