salix/modules/claim/front/photos/index.js

22 lines
483 B
JavaScript
Raw Permalink Normal View History

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 {
constructor($element, $) {
2020-06-12 12:28:29 +00:00
super($element, $);
}
async $onInit() {
const url = await this.vnApp.getUrl(`claim/${this.$params.id}/photos`);
window.location.href = url;
2020-06-12 12:28:29 +00:00
}
2019-07-30 06:51:38 +00:00
}
ngModule.vnComponent('vnClaimPhotos', {
2019-07-30 06:51:38 +00:00
template: require('./index.html'),
controller: Controller,
bindings: {
claim: '<'
}
2019-07-30 06:51:38 +00:00
});