SMS hotfix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-05-03 12:09:12 +02:00
parent 43b416e640
commit 03e77685a1
4 changed files with 20 additions and 4 deletions

View File

@ -28,8 +28,11 @@ class Controller extends Section {
if (!value) return;
this.loadData().then(() => {
if (this.$params.sendSMS)
this.showSMSDialog();
if (this.$params.sendSMS) {
this.showSMSDialog({
message: this.$params.message
});
}
});
}

View File

@ -2,7 +2,11 @@
module="ticket"
description="$ctrl.ticket.client.name">
<slot-dot-menu>
<vn-ticket-descriptor-menu ticket-id="$ctrl.ticket.id" parent-reload="$ctrl.cardReload()"/>
<vn-ticket-descriptor-menu
vn-id="descriptorMenu"
ticket-id="$ctrl.ticket.id"
parent-reload="$ctrl.cardReload()"
/>
</slot-dot-menu>
<slot-body>
<div class="attributes">

View File

@ -19,7 +19,11 @@
ng-click="$ctrl.setOkState()"
vn-tooltip="Change ticket state to 'Ok'">
</vn-button>
<vn-ticket-descriptor-menu ticket-id="$ctrl.summary.id" parent-reload="$ctrl.reload()"/>
<vn-ticket-descriptor-menu
ng-if="!$ctrl.isTicketModule"
ticket-id="$ctrl.summary.id"
parent-reload="$ctrl.reload()"
/>
</h5>
<vn-horizontal>
<vn-one>

View File

@ -40,6 +40,11 @@ class Controller extends Summary {
});
}
get isTicketModule() {
const path = this.$state.getCurrentPath()[1];
return path.state.name === 'ticket';
}
get isEditable() {
try {
return !this.ticket.ticketState.state.alertLevel;