24 lines
599 B
JavaScript
24 lines
599 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
export default class Controller extends Section {
|
|
openSummary(supplier, event) {
|
|
if (event.defaultPrevented) return;
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
|
|
this.supplierSelected = supplier;
|
|
this.$.dialogSummarySupplier.show();
|
|
}
|
|
|
|
test() {
|
|
// eslint-disable-next-line no-console
|
|
console.log('Creating new supplier');
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnSupplierIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|