From dc480f38b616b3163d0344211b3d6aeaf39fecbe Mon Sep 17 00:00:00 2001 From: flfeders Date: Sun, 21 Jul 2024 22:34:10 +0200 Subject: [PATCH] Changes in Tags and Updating --- components/DocumentDisplay.vue | 26 ++++++++++++++++---------- pages/documents.vue | 3 ++- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/components/DocumentDisplay.vue b/components/DocumentDisplay.vue index 65ef76f..acfe5bd 100644 --- a/components/DocumentDisplay.vue +++ b/components/DocumentDisplay.vue @@ -31,10 +31,12 @@ const openDocument = async () => { } const updateDocument = async () => { + console.log("Update") const {url, ...objData} = documentData delete objData.url + const {data,error} = await supabase .from("documents") .update(objData) @@ -46,7 +48,7 @@ const updateDocument = async () => { } else { toast.add({title: "Dokument aktualisiert"}) dataStore.fetchDocuments() - openShowModal.value = false + //openShowModal.value = false } } @@ -178,13 +180,17 @@ const updateDocumentAssignment = async () => { > @@ -210,12 +216,12 @@ const updateDocumentAssignment = async () => { > Archivieren - Eingangsrechnung erstellen - + -->
{