import ngModule from '../module'; import Section from 'salix/components/section'; export default class Controller extends Section { showClientDescriptor(event, clientFk) { this.$.clientDescriptor.clientFk = clientFk; this.$.clientDescriptor.parent = event.target; this.$.clientDescriptor.show(); event.preventDefault(); event.stopImmediatePropagation(); } showWorkerDescriptor(event, workerFk) { event.preventDefault(); event.stopImmediatePropagation(); this.selectedWorker = workerFk; this.$.workerDescriptor.parent = event.target; this.$.workerDescriptor.show(); } onDescriptorLoad() { this.$.popover.relocate(); } preview(event, order) { event.preventDefault(); event.stopImmediatePropagation(); this.selectedOrder = order; this.$.summary.show(); } } ngModule.component('vnOrderIndex', { template: require('./index.html'), controller: Controller });