ticket state changes to pending_open on first view

This commit is contained in:
bton 2024-11-10 17:12:53 +01:00
parent b9cfdf5456
commit 9902bda6d8

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
})]);