salix/modules/ticket/front/note/index.js

21 lines
477 B
JavaScript
Raw Normal View History

2018-03-16 14:06:42 +00:00
import ngModule from '../module';
2020-03-18 07:35:59 +00:00
import Section from 'salix/components/section';
2018-03-16 14:06:42 +00:00
2020-03-18 07:35:59 +00:00
class Controller extends Section {
onSubmit() {
2020-03-18 07:35:59 +00:00
this.$.watcher.check();
2020-03-18 08:41:23 +00:00
this.$.model.save().then(() => {
this.$.watcher.notifySaved();
this.$.watcher.updateOriginalData();
});
2018-03-16 14:06:42 +00:00
}
}
ngModule.component('vnTicketObservation', {
template: require('./index.html'),
controller: Controller,
2018-03-16 14:06:42 +00:00
bindings: {
ticket: '<'
}
});