Little refactor
This commit is contained in:
parent
d364025b19
commit
2d6932fe49
|
@ -308,9 +308,9 @@ class Controller {
|
|||
updateQuantity(id, quantity) {
|
||||
this.$http.post(`/ticket/api/Sales/${id}/updateQuantity`, {quantity: parseInt(quantity)}).then(() => {
|
||||
this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
|
||||
this.$scope.model.refresh();
|
||||
}).catch(e => {
|
||||
this.vnApp.showError(e.data.error.message);
|
||||
}).finally(() => {
|
||||
this.$scope.model.refresh();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue