25 lines
612 B
JavaScript
25 lines
612 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(['claimManager']))
|
|
this.$state.go('claim.card.action');
|
|
});
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClaimDevelopment', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
claim: '<'
|
|
}
|
|
});
|