salix/modules/item/front/barcode/index.js

17 lines
390 B
JavaScript
Raw Normal View History

import ngModule from '../module';
2020-03-17 13:43:46 +00:00
import Section from 'salix/components/section';
2020-03-17 13:43:46 +00:00
export default class Controller extends Section {
onSubmit() {
2020-03-17 13:43:46 +00:00
this.$.watcher.check();
this.$.model.save().then(() =>
this.$.watcher.notifySaved()
);
}
}
ngModule.component('vnItemBarcode', {
template: require('./index.html'),
controller: Controller
});