2023-07-18 09:54:43 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
2024-01-02 18:37:51 +00:00
|
|
|
class Controller extends Section {
|
2023-07-18 09:54:43 +00:00
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
2024-01-02 18:37:51 +00:00
|
|
|
}
|
2023-07-18 09:54:43 +00:00
|
|
|
|
2024-01-02 18:37:51 +00:00
|
|
|
async $onInit() {
|
|
|
|
this.$state.go('client.card.summary', {id: this.$params.id});
|
|
|
|
window.location.href = await this.vnApp.getUrl(`Customer/${this.$params.id}/sms`);
|
2023-07-18 09:54:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.vnComponent('vnClientSms', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
client: '<'
|
|
|
|
}
|
|
|
|
});
|