From 80af06966944b83e48214cc042e8139502d4cdc5 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 11 Feb 2025 19:22:49 +0100 Subject: [PATCH] Added Status to Tickets Fixed Telegram Notification in Tickets Added Ticket Closing --- pages/support/create.vue | 3 ++- pages/support/index.vue | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/support/create.vue b/pages/support/create.vue index d683999..19b99f1 100644 --- a/pages/support/create.vue +++ b/pages/support/create.vue @@ -32,8 +32,9 @@ const createTicket = async () => { if(messageError) { console.log(messageError) } else { + console.log(ticketData) + useFunctions().useSendTelegramNotification(`Ticket von ${profileStore.activeProfile.fullName} erstellt : ${itemInfo.value.content}`) router.push(`/support/${ticketData.id}`) - await useFunctions().useSendTelegramNotification(`Ticket von ${profileStore.activeProfile.fullName} erstellt : ${itemInfo.value.content}`) } } } diff --git a/pages/support/index.vue b/pages/support/index.vue index 19dc77e..3c3bb3c 100644 --- a/pages/support/index.vue +++ b/pages/support/index.vue @@ -34,11 +34,15 @@ setup() :rows="tickets" :empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: `Keine Tickets anzuzeigen` }" @select="(i) => router.push(`/support/${i.id}`)" - :columns="[{key:'created_at',label:'Datum'}, ...profileStore.currentTenant === 5 ? [{key:'tenant',label:'Tenant'}] : [],{key:'title',label:'Titel'},{key:'created_by',label:'Ersteller'},{key:'ticketmessages',label:'Nachrichten'}]" + :columns="[{key:'created_at',label:'Datum'}, ...profileStore.currentTenant === 5 ? [{key:'tenant',label:'Tenant'}] : [],{key:'status',label:'Status'},{key:'title',label:'Titel'},{key:'created_by',label:'Ersteller'},{key:'ticketmessages',label:'Nachrichten'}]" > +