29 lines
750 B
JavaScript
29 lines
750 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
export default class Controller extends Section {
|
|
showWorkerDescriptor(event, workerFk) {
|
|
if (event.defaultPrevented) return;
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
|
|
this.selectedWorker = workerFk;
|
|
this.$.workerDescriptor.parent = event.target;
|
|
this.$.workerDescriptor.show();
|
|
}
|
|
|
|
preview(event, route) {
|
|
if (event.defaultPrevented) return;
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
|
|
this.routeSelected = route;
|
|
this.$.summary.show();
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnRouteIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|