2023-02-28 06:49:34 +00:00
|
|
|
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;
|
2023-02-28 06:49:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-17 12:46:49 +00:00
|
|
|
ngModule.vnComponent('vnClaimPhotos', {
|
2023-02-28 06:49:34 +00:00
|
|
|
controller: Controller,
|
2024-05-17 12:46:49 +00:00
|
|
|
bindings: {
|
|
|
|
claim: '<'
|
|
|
|
}
|
2023-02-28 06:49:34 +00:00
|
|
|
});
|