salix/modules/client/front/note/index/index.js

24 lines
578 B
JavaScript
Raw Normal View History

2018-05-23 12:26:51 +00:00
import ngModule from '../../module';
2020-03-17 10:17:50 +00:00
import Section from 'salix/components/section';
2019-10-01 14:17:57 +00:00
import './style.scss';
2020-03-17 10:17:50 +00:00
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
2024-10-03 13:25:56 +00:00
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`customer/${this.$params.id}/notes`);
2017-06-03 11:01:47 +00:00
}
}
2018-07-16 06:00:04 +00:00
2020-03-17 10:17:50 +00:00
Controller.$inject = ['$element', '$scope'];
ngModule.vnComponent('vnClientNote', {
2018-05-23 12:26:51 +00:00
template: require('./index.html'),
2017-06-03 11:01:47 +00:00
controller: Controller,
bindings: {
client: '<'
}
2017-06-03 11:01:47 +00:00
});