25 lines
614 B
JavaScript
25 lines
614 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
import './style.scss';
|
|
|
|
class Controller extends Section {
|
|
onSubmit() {
|
|
this.$.watcher.check();
|
|
this.$.model.save().then(() => {
|
|
this.$.watcher.notifySaved();
|
|
this.$.watcher.updateOriginalData();
|
|
|
|
if (this.aclService.hasAny(['salesAssistant']))
|
|
this.$state.go('claim.card.action');
|
|
});
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClaimDevelopment', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
claim: '<'
|
|
}
|
|
});
|