Create new order now opens on new window
This commit is contained in:
parent
e6f6c262fa
commit
310f2bae70
|
@ -401,10 +401,9 @@ class Controller {
|
|||
|
||||
newOrderFromTicket() {
|
||||
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');
|
||||
|
||||
// this.$state.go('order.card.catalog', {id: res.data});
|
||||
this.vnApp.showSuccess(this.$translate.instant('Order created'));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue