21 lines
477 B
JavaScript
21 lines
477 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();
|
||
|
this.$.watcher.updateOriginalData();
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ngModule.vnComponent('vnEntryObservation', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller,
|
||
|
bindings: {
|
||
|
entry: '<'
|
||
|
}
|
||
|
});
|