import ngModule from '../module';
import Section from 'salix/components/section';

class Controller extends Section {
    constructor($element, $) {
        super($element, $);
    }

    async $onInit() {
        const url = await this.vnApp.getUrl(`claim/${this.$params.id}/photos`);
        window.location.href = url;
    }
}

ngModule.vnComponent('vnClaimPhotos', {
    template: require('./index.html'),
    controller: Controller,
    bindings: {
        claim: '<'
    }
});