Create new order now opens on new window
gitea/salix/master This commit looks good Details
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-09-24 11:35:46 +02:00
parent e6f6c262fa
commit 310f2bae70
1 changed files with 1 additions and 2 deletions

View File

@ -401,10 +401,9 @@ class Controller {
newOrderFromTicket() { newOrderFromTicket() {
this.$http.post(`/api/Orders/newFromTicket`, {ticketFk: this.ticket.id}).then(res => { this.$http.post(`/api/Orders/newFromTicket`, {ticketFk: this.ticket.id}).then(res => {
const path = $state.href('order.card.catalog', {id: res.data}); const path = this.$state.href('order.card.catalog', {id: res.data});
window.open(path, '_blank'); window.open(path, '_blank');
// this.$state.go('order.card.catalog', {id: res.data});
this.vnApp.showSuccess(this.$translate.instant('Order created')); this.vnApp.showSuccess(this.$translate.instant('Order created'));
}); });
} }