2018-01-18 07:38:04 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-17 13:43:46 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-01-18 07:38:04 +00:00
|
|
|
|
2020-03-17 13:43:46 +00:00
|
|
|
export default class Controller extends Section {
|
2018-08-30 06:50:03 +00:00
|
|
|
onSubmit() {
|
2020-03-17 13:43:46 +00:00
|
|
|
this.$.watcher.check();
|
2020-03-18 08:41:23 +00:00
|
|
|
this.$.model.save().then(() => {
|
|
|
|
this.$.watcher.notifySaved();
|
|
|
|
this.$.watcher.updateOriginalData();
|
|
|
|
});
|
2018-02-27 11:32:47 +00:00
|
|
|
}
|
2018-02-20 11:25:51 +00:00
|
|
|
}
|
|
|
|
|
2018-01-18 07:38:04 +00:00
|
|
|
ngModule.component('vnItemNiche', {
|
2018-05-25 08:03:45 +00:00
|
|
|
template: require('./index.html'),
|
2018-02-20 11:25:51 +00:00
|
|
|
controller: Controller
|
2018-01-18 07:38:04 +00:00
|
|
|
});
|