when you create an order now redirects to order.card.catalogue

This commit is contained in:
gerard 2018-07-31 14:08:41 +02:00
parent 21ab8a5573
commit 9ce117325c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class Controller {
}; };
this.$http.post(`order/api/Orders/new`, params).then(res => { this.$http.post(`order/api/Orders/new`, params).then(res => {
this.vnApp.showSuccess(this.translate.instant('Data saved!')); this.vnApp.showSuccess(this.translate.instant('Data saved!'));
this.$state.go("order.card.summary", {id: res.data}); this.$state.go("order.card.catalogue", {id: res.data});
}).catch(e => { }).catch(e => {
this.vnApp.showError(this.translate.instant(e.data.error.message)); this.vnApp.showError(this.translate.instant(e.data.error.message));
}); });