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

22 lines
445 B
JavaScript
Raw Permalink Normal View History

2019-10-25 11:26:38 +00:00
import ngModule from '../module';
2020-03-18 11:55:22 +00:00
import Section from 'salix/components/section';
2019-10-25 11:26:38 +00:00
2020-03-18 11:55:22 +00:00
class Controller extends Section {
2019-10-25 11:26:38 +00:00
onSubmit() {
2020-03-18 11:55:22 +00:00
return this.$.watcher.submit().then(() =>
this.card.reload()
);
2019-10-25 11:26:38 +00:00
}
}
ngModule.vnComponent('vnTravelBasicData', {
2019-10-25 11:26:38 +00:00
template: require('./index.html'),
controller: Controller,
bindings: {
travel: '<'
},
require: {
card: '^vnTravelCard'
}
});