From 569e5d93906ceec06abd8abc1b14b4381e3ad82f Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sat, 10 Feb 2024 16:58:39 -0500 Subject: [PATCH] Higher level abstractions for building object store components. --- .../Dataset/DatasetStorage/RelocateDialog.vue | 28 ++++++++----------- .../ObjectStore/ObjectStoreSelectButton.vue | 2 ++ ...ObjectStoreSelectButtonDescribePopover.vue | 26 +++++++++++++++++ .../ObjectStore/SelectObjectStore.vue | 14 +++++----- 4 files changed, 47 insertions(+), 23 deletions(-) create mode 100644 client/src/components/ObjectStore/ObjectStoreSelectButtonDescribePopover.vue diff --git a/client/src/components/Dataset/DatasetStorage/RelocateDialog.vue b/client/src/components/Dataset/DatasetStorage/RelocateDialog.vue index 4fab527c72dd..e0823d4b9bd5 100644 --- a/client/src/components/Dataset/DatasetStorage/RelocateDialog.vue +++ b/client/src/components/Dataset/DatasetStorage/RelocateDialog.vue @@ -1,9 +1,8 @@ + + diff --git a/client/src/components/ObjectStore/SelectObjectStore.vue b/client/src/components/ObjectStore/SelectObjectStore.vue index fa71c773c305..cd92e22866ba 100644 --- a/client/src/components/ObjectStore/SelectObjectStore.vue +++ b/client/src/components/ObjectStore/SelectObjectStore.vue @@ -6,8 +6,8 @@ import { useObjectStoreStore } from "@/stores/objectStoreStore"; import ObjectStoreSelectButton from "./ObjectStoreSelectButton.vue"; import ObjectStoreSelectButtonPopover from "./ObjectStoreSelectButtonPopover.vue"; +import ObjectStoreSelectButtonDescribePopover from "./ObjectStoreSelectButtonDescribePopover.vue"; import LoadingSpan from "@/components/LoadingSpan.vue"; -import DescribeObjectStore from "@/components/ObjectStore/DescribeObjectStore.vue"; interface SelectObjectStoreProps { selectedObjectStoreId?: String | null; @@ -76,7 +76,7 @@ async function handleSubmit(preferredObjectStoreId: string) { > {{ defaultOptionDescription }} - - - + id-prefix="preferred" + :what="forWhat" + :object-store="objectStore"> +