Fixed DocumentUpload and Loading in Files

This commit is contained in:
2025-04-12 12:01:21 +02:00
parent b924c92908
commit 977e9e0344
2 changed files with 10 additions and 97 deletions

View File

@@ -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")})
}
</script>
<template>