This commit is contained in:
parent
b9f6dc0a39
commit
bf8d82f3c6
|
@ -244,7 +244,12 @@ class Controller extends Section {
|
|||
|
||||
const query = `tickets/${this.ticket.id}/transferSales`;
|
||||
this.$http.post(query, params)
|
||||
.then(res => this.$state.go('ticket.card.sale', {id: res.data.id}));
|
||||
.then(res => {
|
||||
if (res.data && res.data.id === this.ticket.id) {
|
||||
this.$.transfer.hide();
|
||||
this.$.model.refresh();
|
||||
} else this.$state.go('ticket.card.sale', {id: res.data.id});
|
||||
});
|
||||
}
|
||||
|
||||
showEditPricePopover(event, sale) {
|
||||
|
|
Loading…
Reference in New Issue