changed hide for on-hide binding
This commit is contained in:
parent
fd0e46516c
commit
db6a5cfc3e
|
@ -44,7 +44,7 @@ class Controller {
|
||||||
}
|
}
|
||||||
if (modified) {
|
if (modified) {
|
||||||
this.$http.post(`/ticket/api/Sales/updateDiscount`, {editLines}).then(() => {
|
this.$http.post(`/ticket/api/Sales/updateDiscount`, {editLines}).then(() => {
|
||||||
this.hide();
|
this.onHide();
|
||||||
this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
|
this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
|
||||||
this.clear();
|
this.clear();
|
||||||
modified = false;
|
modified = false;
|
||||||
|
@ -69,6 +69,6 @@ ngModule.component('vnTicketSaleEditDiscount', {
|
||||||
edit: '<?',
|
edit: '<?',
|
||||||
mana: '<?',
|
mana: '<?',
|
||||||
bulk: '<?',
|
bulk: '<?',
|
||||||
hide: '&'
|
onHide: '&'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -190,7 +190,7 @@
|
||||||
mana="$ctrl.mana"
|
mana="$ctrl.mana"
|
||||||
bulk="false"
|
bulk="false"
|
||||||
edit="$ctrl.edit"
|
edit="$ctrl.edit"
|
||||||
hide="$ctrl.hideEditPopover()">
|
on-hide="$ctrl.hideEditPopover()">
|
||||||
</vn-ticket-sale-edit-discount>
|
</vn-ticket-sale-edit-discount>
|
||||||
</vn-popover>
|
</vn-popover>
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
mana="$ctrl.mana"
|
mana="$ctrl.mana"
|
||||||
bulk="true"
|
bulk="true"
|
||||||
edit="$ctrl.edit"
|
edit="$ctrl.edit"
|
||||||
hide="$ctrl.hideEditDialog()">
|
on-hide="$ctrl.hideEditDialog()">
|
||||||
</vn-ticket-sale-edit-discount>
|
</vn-ticket-sale-edit-discount>
|
||||||
</tpl-body>
|
</tpl-body>
|
||||||
</vn-dialog>
|
</vn-dialog>
|
||||||
|
|
Loading…
Reference in New Issue