From 4dbe364e6dc93051a8b2f0bb6d0b8483f28bf8d5 Mon Sep 17 00:00:00 2001 From: bton Date: Sat, 2 Nov 2024 01:24:12 +0100 Subject: [PATCH] assigned ticket button is pre selected and deisabled if selected person == asigned person --- web/src/views/Ticket.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/src/views/Ticket.vue b/web/src/views/Ticket.vue index 2872185..629ede8 100644 --- a/web/src/views/Ticket.vue +++ b/web/src/views/Ticket.vue @@ -20,7 +20,7 @@ @@ -75,7 +75,7 @@ export default { data() { return { selected_state: null, - Selected_assignee: null, + selected_assignee: null, shipping_voucher_type: null, } }, @@ -83,7 +83,10 @@ export default { ticket(val) { if (this.selected_state == null){ this.selected_state = val.state; - } + }; + if(this.selected_assignee == null){ + this.selected_assignee = val.assigned_to + } } }, computed: {