#5081-hotfix-sms-faltas #1250

Merged
joan merged 4 commits from #5081-hotfix-sms-faltas into master 2023-01-12 12:06:59 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit d5a7691b9c - Show all commits

View File

@ -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

View File

@ -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
*/