From e3fe2d32559320405e2f873e9603c68fee8c2829 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 8 Feb 2024 10:18:14 -0500 Subject: [PATCH] Refactor ObjectStore button popover for reuse. --- .../ObjectStore/ObjectStoreSelectButton.vue | 1 + .../ObjectStoreSelectButtonPopover.vue | 19 ++++++++++++ .../ObjectStore/SelectObjectStore.vue | 31 +++++++------------ 3 files changed, 31 insertions(+), 20 deletions(-) create mode 100644 client/src/components/ObjectStore/ObjectStoreSelectButtonPopover.vue diff --git a/client/src/components/ObjectStore/ObjectStoreSelectButton.vue b/client/src/components/ObjectStore/ObjectStoreSelectButton.vue index aefe72e32d77..7bca8f555e51 100644 --- a/client/src/components/ObjectStore/ObjectStoreSelectButton.vue +++ b/client/src/components/ObjectStore/ObjectStoreSelectButton.vue @@ -1,5 +1,6 @@ + + diff --git a/client/src/components/ObjectStore/SelectObjectStore.vue b/client/src/components/ObjectStore/SelectObjectStore.vue index 7bd6c4e5e7e1..fa71c773c305 100644 --- a/client/src/components/ObjectStore/SelectObjectStore.vue +++ b/client/src/components/ObjectStore/SelectObjectStore.vue @@ -4,9 +4,10 @@ import { computed, ref } from "vue"; import { useObjectStoreStore } from "@/stores/objectStoreStore"; +import ObjectStoreSelectButton from "./ObjectStoreSelectButton.vue"; +import ObjectStoreSelectButtonPopover from "./ObjectStoreSelectButtonPopover.vue"; import LoadingSpan from "@/components/LoadingSpan.vue"; import DescribeObjectStore from "@/components/ObjectStore/DescribeObjectStore.vue"; -import ObjectStoreSelectButton from "./ObjectStoreSelectButton.vue"; interface SelectObjectStoreProps { selectedObjectStoreId?: String | null; @@ -21,11 +22,6 @@ const props = withDefaults(defineProps(), { parentError: null, }); -const popoverProps = { - placement: "rightbottom", - boundary: "window", // don't warp the popover to squeeze it into this modal -}; - const store = useObjectStoreStore(); const { isLoading, loadErrorMessage, selectableObjectStores } = storeToRefs(store); @@ -94,21 +90,16 @@ async function handleSubmit(preferredObjectStoreId: string) {

- - + {{ defaultOptionDescription }} - - - - - + + + +