Little refactor

This commit is contained in:
gerard 2018-08-20 14:52:37 +02:00
parent d364025b19
commit 2d6932fe49
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});
}