2018-09-05 09:48:38 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-16 10:58:14 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-09-05 09:48:38 +00:00
|
|
|
|
2020-03-16 10:58:14 +00:00
|
|
|
class Controller extends Section {
|
2023-08-25 12:26:17 +00:00
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
|
|
|
}
|
2019-04-08 07:01:10 +00:00
|
|
|
|
2023-08-25 12:26:17 +00:00
|
|
|
async $onInit() {
|
|
|
|
this.$state.go('claim.card.summary', {id: this.$params.id});
|
|
|
|
window.location.href = await this.vnApp.getUrl(`claim/${this.$params.id}/development`);
|
2018-09-05 09:48:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnClaimDevelopment', {
|
2018-09-05 09:48:38 +00:00
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
claim: '<'
|
|
|
|
}
|
|
|
|
});
|