From 0bab558c759e528c2a03643e3f029efa9f2713d5 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 7 Jan 2025 12:42:00 +0100 Subject: [PATCH] Updated in Files and Archiving --- components/ButtonWithConfirm.vue | 30 ++-- components/DocumentDisplay.vue | 268 ++-------------------------- components/DocumentDisplayModal.vue | 123 +++++++++++-- components/DocumentList.vue | 2 + composables/useFiles.js | 14 +- 5 files changed, 151 insertions(+), 286 deletions(-) diff --git a/components/ButtonWithConfirm.vue b/components/ButtonWithConfirm.vue index fb17fb5..fe10c44 100644 --- a/components/ButtonWithConfirm.vue +++ b/components/ButtonWithConfirm.vue @@ -18,6 +18,7 @@ const {color,variant} = props const showModal = ref(false) const emitConfirm = () => { + showModal.value = false emit('confirmed') } @@ -38,19 +39,22 @@ const emitConfirm = () => { diff --git a/components/DocumentDisplay.vue b/components/DocumentDisplay.vue index cdb2702..d88a3ba 100644 --- a/components/DocumentDisplay.vue +++ b/components/DocumentDisplay.vue @@ -1,8 +1,11 @@