From 977e9e034464c6789149ea208c2b6e42b42a4440 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sat, 12 Apr 2025 12:01:21 +0200 Subject: [PATCH] Fixed DocumentUpload and Loading in Files --- components/DocumentUpload.vue | 10 ++-- pages/files/index.vue | 97 +++-------------------------------- 2 files changed, 10 insertions(+), 97 deletions(-) diff --git a/components/DocumentUpload.vue b/components/DocumentUpload.vue index cb26bc9..343fb88 100644 --- a/components/DocumentUpload.vue +++ b/components/DocumentUpload.vue @@ -15,21 +15,17 @@ const {type, elementId} = props const emit = defineEmits(["uploadFinished"]) -const dataStore = useDataStore() -const profileStore = useProfileStore() const modal = useModal() const openModal = () => { - let fileProps = {fileData: {folder: null, type: null, typeEnabled: true}} + let fileProps = {folder: null, type: null, typeEnabled: true} - fileProps.fileData[props.type] = props.elementId + fileProps[props.type] = props.elementId console.log(fileProps) - modal.open(DocumentUploadModal,fileProps) + modal.open(DocumentUploadModal,{fileData: fileProps, onUploadFinished: () => emit("uploadFinished")}) } - -