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")}) } - -