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

20 lines
424 B
JavaScript

import ngModule from '../module';
import Section from 'salix/components/section';
class Controller extends Section {
onSubmit() {
this.$.watcher.check();
this.$.model.save().then(() =>
this.$.watcher.notifySaved()
);
}
}
ngModule.component('vnTicketObservation', {
template: require('./index.html'),
controller: Controller,
bindings: {
ticket: '<'
}
});