2020-01-10 10:29:11 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-16 10:58:14 +00:00
|
|
|
import Section from 'salix/components/section';
|
2019-07-30 06:51:38 +00:00
|
|
|
|
2020-03-16 10:58:14 +00:00
|
|
|
class Controller extends Section {
|
2023-04-17 08:46:26 +00:00
|
|
|
constructor($element, $) {
|
2020-06-12 12:28:29 +00:00
|
|
|
super($element, $);
|
|
|
|
}
|
|
|
|
|
2023-04-17 08:46:26 +00:00
|
|
|
async $onInit() {
|
|
|
|
const url = await this.vnApp.getUrl(`claim/${this.$params.id}/photos`);
|
2023-04-20 05:51:25 +00:00
|
|
|
window.location.href = url;
|
2020-06-12 12:28:29 +00:00
|
|
|
}
|
2019-07-30 06:51:38 +00:00
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnClaimPhotos', {
|
2019-07-30 06:51:38 +00:00
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
2019-09-30 12:57:54 +00:00
|
|
|
bindings: {
|
|
|
|
claim: '<'
|
|
|
|
}
|
2019-07-30 06:51:38 +00:00
|
|
|
});
|