From c0cd6ad214b7ea105fdf5bc35afab4abebd4a883 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 7 Feb 2024 15:26:36 -0500 Subject: [PATCH] Rework SelectObjectStore API interaction to pinia stores. --- client/src/api/index.ts | 2 + .../ObjectStore/SelectObjectStore.vue | 44 ++++++------------- .../components/ObjectStore/mockServices.ts | 19 +++++++- client/src/stores/objectStoreStore.ts | 38 ++++++++++++++++ 4 files changed, 70 insertions(+), 33 deletions(-) create mode 100644 client/src/stores/objectStoreStore.ts diff --git a/client/src/api/index.ts b/client/src/api/index.ts index 56045959f06..44704ca5fda 100644 --- a/client/src/api/index.ts +++ b/client/src/api/index.ts @@ -77,6 +77,8 @@ export type DCObject = components["schemas"]["DCObject"]; export type DatasetCollectionAttributes = components["schemas"]["DatasetCollectionAttributesResult"]; +export type ConcreteObjectStoreModel = components["schemas"]["ConcreteObjectStoreModel"]; + /** * A SubCollection is a DatasetCollectionElement of type `dataset_collection` * with additional information to simplify its handling. diff --git a/client/src/components/ObjectStore/SelectObjectStore.vue b/client/src/components/ObjectStore/SelectObjectStore.vue index 3630700cfca..22fc33b4938 100644 --- a/client/src/components/ObjectStore/SelectObjectStore.vue +++ b/client/src/components/ObjectStore/SelectObjectStore.vue @@ -1,8 +1,8 @@