From 046b69d89e1e6d8401c3ca70fe3842139e7933c7 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 3 Jan 2024 07:47:38 +0100 Subject: [PATCH] =?UTF-8?q?warmFix(ticketSummary):=20change=20this.=20?= =?UTF-8?q?=E2=86=92=20.value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/useUserConfig.js | 2 +- src/pages/Ticket/Card/TicketSummary.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/composables/useUserConfig.js b/src/composables/useUserConfig.js index 692943978..e05d7fb5c 100644 --- a/src/composables/useUserConfig.js +++ b/src/composables/useUserConfig.js @@ -16,7 +16,7 @@ export function useUserConfig() { return data; } catch (error) { - notify('globals.errors.userConfig', 'negative'); + notify('errors.userConfig', 'negative'); console.error('Error fetching user config:', error); } } diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index cfc35c032..4114b0c8e 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -49,7 +49,7 @@ async function setData(data) { function formattedAddress() { if (!ticket.value) return ''; - const address = this.ticket.address; + const address = ticket.value.address; const postcode = address.postalCode; const province = address.province ? `(${address.province.name})` : ''; @@ -58,7 +58,7 @@ function formattedAddress() { function isEditable() { try { - return !this.ticket.ticketState.state.alertLevel; + return !ticket.value.ticketState.state.alertLevel; } catch (e) { console.error(e); } @@ -67,10 +67,10 @@ function isEditable() { } async function changeState(value) { - if (!this.ticket.id) return; + if (!ticket.value.id) return; const formData = { - ticketFk: this.ticket.id, + ticketFk: ticket.value.id, code: value, };