diff --git a/client/src/components/FilesDialog/FilesDialog.vue b/client/src/components/FilesDialog/FilesDialog.vue index a4f5410b359f..88d8092336e9 100644 --- a/client/src/components/FilesDialog/FilesDialog.vue +++ b/client/src/components/FilesDialog/FilesDialog.vue @@ -450,7 +450,6 @@ onMounted(() => { :provider-url="currentDirectory?.url" :total-items="totalItems" :modal-show="modalShow" - :modal-static="modalStatic" :multiple="multiple" :options-show="optionsShow" :select-all-variant="selectAllIcon" diff --git a/client/src/components/SelectionDialog/SelectionDialog.vue b/client/src/components/SelectionDialog/SelectionDialog.vue index c67969566377..41d38aea1d1c 100644 --- a/client/src/components/SelectionDialog/SelectionDialog.vue +++ b/client/src/components/SelectionDialog/SelectionDialog.vue @@ -3,7 +3,7 @@ import { type IconDefinition, library } from "@fortawesome/fontawesome-svg-core" import { faCheckSquare, faMinusSquare, faSquare } from "@fortawesome/free-regular-svg-icons"; import { faCaretLeft, faCheck, faFolder, faSpinner, faTimes } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; -import { BAlert, BButton, BLink, BModal, BPagination, BSpinner, BTable } from "bootstrap-vue"; +import { BAlert, BButton, BLink, BPagination, BSpinner, BTable } from "bootstrap-vue"; import { computed, ref, watch } from "vue"; import { type ItemsProvider, SELECTION_STATES, type SelectionState } from "@/components/SelectionDialog/selectionTypes"; @@ -11,8 +11,8 @@ import type Filtering from "@/utils/filtering"; import type { FieldEntry, SelectionItem } from "./selectionTypes"; +import GModal from "../BaseComponents/GModal.vue"; import FilterMenu from "@/components/Common/FilterMenu.vue"; -import Heading from "@/components/Common/Heading.vue"; import DataDialogSearch from "@/components/SelectionDialog/DataDialogSearch.vue"; import StatelessTags from "@/components/TagsMultiselect/StatelessTags.vue"; @@ -35,7 +35,6 @@ interface Props { leafIcon?: string; folderIcon?: IconDefinition; modalShow?: boolean; - modalStatic?: boolean; multiple?: boolean; optionsShow?: boolean; undoShow?: boolean; @@ -168,35 +167,48 @@ watch( } } ); + +const dialog = ref | null>(null); +watch( + () => dialog.value, + (newValue) => { + if (newValue) { + dialog.value?.showModal(); + } + }, + { immediate: true } +);