salix/modules/zone/front/basic-data/index.js

22 lines
430 B
JavaScript
Raw Normal View History

2018-12-04 12:18:27 +00:00
import ngModule from '../module';
2020-03-18 11:55:22 +00:00
import Section from 'salix/components/section';
2018-09-24 08:43:54 +00:00
2020-03-18 11:55:22 +00:00
class Controller extends Section {
2018-09-24 08:43:54 +00:00
onSubmit() {
2020-03-18 11:55:22 +00:00
this.$.watcher.submit().then(() =>
this.card.reload()
);
2018-09-24 08:43:54 +00:00
}
}
2019-01-21 10:45:53 +00:00
ngModule.component('vnZoneBasicData', {
2018-09-24 08:43:54 +00:00
template: require('./index.html'),
controller: Controller,
bindings: {
zone: '<'
},
require: {
card: '^vnZoneCard'
}
});