Fixed DocumentUpload and Loading in Files
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user