diff --git a/modules/ticket/front/sale/editDiscount.js b/modules/ticket/front/sale/editDiscount.js index c4c73b016..34dc0c48e 100644 --- a/modules/ticket/front/sale/editDiscount.js +++ b/modules/ticket/front/sale/editDiscount.js @@ -44,7 +44,7 @@ class Controller { } if (modified) { this.$http.post(`/ticket/api/Sales/updateDiscount`, {editLines}).then(() => { - this.hide(); + this.onHide(); this.vnApp.showSuccess(this.$translate.instant('Data saved!')); this.clear(); modified = false; @@ -69,6 +69,6 @@ ngModule.component('vnTicketSaleEditDiscount', { edit: ' + on-hide="$ctrl.hideEditPopover()"> @@ -204,7 +204,7 @@ mana="$ctrl.mana" bulk="true" edit="$ctrl.edit" - hide="$ctrl.hideEditDialog()"> + on-hide="$ctrl.hideEditDialog()">