ticket state changes to pending_open on first view

This commit is contained in:
bton 2024-11-10 17:12:53 +01:00 committed by j3d1
parent 5a6349c5d3
commit 8831f67f00

View file

@ -125,6 +125,9 @@ export default {
},
mounted() {
this.scheduleAfterInit(() => [Promise.all([this.fetchTicketStates(), this.loadTickets(), this.loadUsers(), this.fetchShippingVouchers()]).then(()=>{
if (this.ticket.state == "pending_new"){
this.ticket.state = "pending_open"
};
this.selected_state = this.ticket.state;
this.selected_assignee = this.ticket.assigned_to
})]);