change the ticket.state in the backend too

This commit is contained in:
bton 2024-11-10 19:53:09 +01:00 committed by j3d1
parent 8831f67f00
commit 444c2de16c

View file

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