Create new order now opens on new window
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
a319eed5f6
commit
5851784e41
|
@ -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'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue