add controller function
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
2678d59191
commit
d5a7691b9c
|
@ -443,7 +443,8 @@
|
|||
<!-- SMS Dialog -->
|
||||
<vn-sms-dialog
|
||||
vn-id="sms"
|
||||
sms="$ctrl.newSMS">
|
||||
sms="$ctrl.newSMS"
|
||||
on-send="$ctrl.onSmsSend($sms)">
|
||||
</vn-sms-dialog>
|
||||
|
||||
<vn-confirm
|
||||
|
|
|
@ -389,6 +389,11 @@ class Controller extends Section {
|
|||
this.$.sms.open();
|
||||
}
|
||||
|
||||
onSmsSend(sms) {
|
||||
return this.$http.post(`Tickets/${this.ticket.id}/sendSms`, sms)
|
||||
.then(() => this.vnApp.showSuccess(this.$t('SMS sent')));
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a new instance
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue