19 lines
468 B
JavaScript
19 lines
468 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
}
|
|
|
|
async $onInit() {
|
|
const url = await this.vnApp.getUrl(`worker/${this.$params.id}/pda`);
|
|
this.$state.go('worker.card.summary', {id: this.$params.id});
|
|
window.location.href = url;
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnWorkerPda', {
|
|
controller: Controller
|
|
});
|