salix/modules/supplier/front/index/index.js

19 lines
486 B
JavaScript
Raw Normal View History

import ngModule from '../module';
import Section from 'salix/components/section';
2020-11-18 10:47:23 +00:00
export default class Controller extends Section {
openSummary(supplier, event) {
if (event.defaultPrevented) return;
event.preventDefault();
event.stopPropagation();
this.supplierSelected = supplier;
this.$.dialogSummarySupplier.show();
}
}
ngModule.vnComponent('vnSupplierIndex', {
template: require('./index.html'),
controller: Controller
});