changed hide for on-hide binding

This commit is contained in:
Gerard 2019-02-14 20:18:10 +01:00
parent fd0e46516c
commit db6a5cfc3e
2 changed files with 4 additions and 4 deletions

View File

@ -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: '<?',
mana: '<?',
bulk: '<?',
hide: '&'
onHide: '&'
}
});

View File

@ -190,7 +190,7 @@
mana="$ctrl.mana"
bulk="false"
edit="$ctrl.edit"
hide="$ctrl.hideEditPopover()">
on-hide="$ctrl.hideEditPopover()">
</vn-ticket-sale-edit-discount>
</vn-popover>
@ -204,7 +204,7 @@
mana="$ctrl.mana"
bulk="true"
edit="$ctrl.edit"
hide="$ctrl.hideEditDialog()">
on-hide="$ctrl.hideEditDialog()">
</vn-ticket-sale-edit-discount>
</tpl-body>
</vn-dialog>