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`);
|
2024-05-20 23:10:53 +00:00
|
|
|
this.$state.go('worker.card.summary', {id: this.$params.id});
|
2024-05-17 12:46:49 +00:00
|
|
|
window.location.href = url;
|
2023-02-28 06:49:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-17 12:56:40 +00:00
|
|
|
ngModule.vnComponent('vnWorkerPda', {
|
2024-05-21 06:54:53 +00:00
|
|
|
controller: Controller
|
2023-02-28 06:49:34 +00:00
|
|
|
});
|