diff --git a/client/src/api/datasetCollections.ts b/client/src/api/datasetCollections.ts index cb09d46c66b5..3cf02c98f55a 100644 --- a/client/src/api/datasetCollections.ts +++ b/client/src/api/datasetCollections.ts @@ -61,3 +61,9 @@ export const fetchCollectionAttributes = fetcher .path("/api/dataset_collections/{id}/attributes") .method("get") .create(); + +const postCopyCollection = fetcher.path("/api/dataset_collections/{id}/copy").method("post").create(); +export async function copyCollection(id: string, dbkey: string): Promise> { + const { data } = await postCopyCollection({ id, dbkey }); + return data; +} diff --git a/client/src/api/histories.ts b/client/src/api/histories.ts index dafdc577ac21..fcd1d0c1c1f7 100644 --- a/client/src/api/histories.ts +++ b/client/src/api/histories.ts @@ -8,3 +8,7 @@ export const undeleteHistory = fetcher.path("/api/histories/deleted/{history_id} export const undeleteHistories = fetcher.path("/api/histories/batch/undelete").method("put").create(); export const publishedHistoriesFetcher = fetcher.path("/api/histories/published").method("get").create(); export const historyFetcher = fetcher.path("/api/histories/{history_id}").method("get").create(); +export const updateHistoryItemsInBulk = fetcher + .path("/api/histories/{history_id}/contents/bulk") + .method("put") + .create(); diff --git a/client/src/components/Collections/common/ChangeDatatypeTab.vue b/client/src/components/Collections/common/ChangeDatatypeTab.vue index b5844d33be4e..1e410818afc0 100644 --- a/client/src/components/Collections/common/ChangeDatatypeTab.vue +++ b/client/src/components/Collections/common/ChangeDatatypeTab.vue @@ -1,14 +1,53 @@ + + - diff --git a/client/src/components/Collections/common/ClickToEdit.vue b/client/src/components/Collections/common/ClickToEdit.vue index f5e70406f623..da60f01880d9 100644 --- a/client/src/components/Collections/common/ClickToEdit.vue +++ b/client/src/components/Collections/common/ClickToEdit.vue @@ -1,3 +1,35 @@ + + - - -