From 9902bda6d81f17345ca652b10d85f8fe652d48d9 Mon Sep 17 00:00:00 2001 From: bton Date: Sun, 10 Nov 2024 17:12:53 +0100 Subject: [PATCH 1/2] ticket state changes to pending_open on first view --- web/src/views/Ticket.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/views/Ticket.vue b/web/src/views/Ticket.vue index cbb372c..2042090 100644 --- a/web/src/views/Ticket.vue +++ b/web/src/views/Ticket.vue @@ -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 })]); -- 2.39.5 From e38e05d3701122893a76dacbf0c82c9fbcf62675 Mon Sep 17 00:00:00 2001 From: bton Date: Sun, 10 Nov 2024 19:53:09 +0100 Subject: [PATCH 2/2] change the ticket.state in the backend too --- web/src/views/Ticket.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/views/Ticket.vue b/web/src/views/Ticket.vue index 2042090..f666ee8 100644 --- a/web/src/views/Ticket.vue +++ b/web/src/views/Ticket.vue @@ -126,7 +126,8 @@ 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 = "pending_open"; + this.changeTicketStatus(this.ticket) }; this.selected_state = this.ticket.state; this.selected_assignee = this.ticket.assigned_to -- 2.39.5