diff --git a/SecureSend/ClientApp/src/components/FileUploadForm/FileInput.vue b/SecureSend/ClientApp/src/components/FileUploadForm/FileInput.vue index 45df4e4..f9dedd7 100644 --- a/SecureSend/ClientApp/src/components/FileUploadForm/FileInput.vue +++ b/SecureSend/ClientApp/src/components/FileUploadForm/FileInput.vue @@ -3,7 +3,7 @@ import UploadIcon from "@/assets/icons/UploadIcon.vue"; import FileCard from "../FileCard.vue"; import LoadingIndicator from "@/components/LoadingIndicator.vue"; import CheckIcon from "@/assets/icons/CheckIcon.vue"; -import { ref } from "vue"; +import { inject, type Ref, ref } from "vue"; import { useDropZone } from "@/utils/composables/useDropZone"; import TrashIcon from "@/assets/icons/TrashIcon.vue"; import PlusIcon from "@/assets/icons/PlusIcon.vue"; @@ -26,6 +26,8 @@ defineProps<{ isUploadSetup: boolean; }>(); +const isLoading = inject>("isLoading"); + const fileDropZone = ref(); const onDrop = (files: File[] | null) => { @@ -86,9 +88,7 @@ const { isOverDropZone } = useDropZone(fileDropZone, { onDrop }); Remove file - -
+