From 93702a48cef80bdbd695de84b544546e07a890e8 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 6 Jan 2025 11:41:35 -0500 Subject: [PATCH] Remove individual collection builders from history dropdown. --- .../HistoryOperations/SelectionOperations.vue | 74 ------------------- 1 file changed, 74 deletions(-) diff --git a/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue b/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue index c978c95b8cfc..9f9add541a17 100644 --- a/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue +++ b/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue @@ -64,35 +64,6 @@ Advanced Build List - - - Build Dataset List - - - Build List of Dataset Pairs - - - Build List of Dataset Pairs (v2) - - - Build List with Optional Pairing - - - Build Collection from Rules - - @@ -193,12 +164,9 @@ import { DatatypesProvider, DbKeyProvider } from "components/providers"; import SingleItemSelector from "components/SingleItemSelector"; import { StatelessTags } from "components/Tags"; -import { createDatasetCollection } from "@/components/History/model/queries"; import { useConfig } from "@/composables/config"; import { useCollectionBuilderItemSelection } from "@/stores/collectionBuilderItemsStore"; -import { buildRuleCollectionModal } from "../../adapters/buildCollectionModal"; - import CollectionCreatorModal from "@/components/Collections/CollectionCreatorModal.vue"; export default { @@ -407,48 +375,6 @@ export default { onSelectedDatatype(datatype) { this.selectedDatatype = datatype; }, - - // collection creation, fires up a modal - buildDatasetList() { - this.collectionModalType = "list"; - this.collectionSelection = Array.from(this.contentSelection.values()); - this.collectionModalShow = true; - }, - buildDatasetListAll() { - this.collectionModalType = "list"; - this.collectionSelection = undefined; - this.collectionModalShow = true; - }, - buildListOfPairs() { - this.collectionModalType = "list:paired"; - this.collectionSelection = Array.from(this.contentSelection.values()); - this.useBetaComponents = false; - this.collectionModalShow = true; - }, - buildListOfPairsV2() { - this.collectionModalType = "list:paired"; - this.collectionSelection = Array.from(this.contentSelection.values()); - this.useBetaComponents = true; - this.collectionModalShow = true; - }, - buildListOfMixedPaired() { - this.collectionModalType = "list:paired_or_unpaired"; - this.collectionSelection = Array.from(this.contentSelection.values()); - this.collectionModalShow = true; - }, - createdCollection(collection) { - this.$emit("reset-selection"); - }, - async buildCollectionFromRules() { - const modalResult = await buildRuleCollectionModal(this.contentSelection, this.history.id); - await createDatasetCollection(this.history, modalResult); - - // have to hide the source items if that was requested - if (modalResult.hide_source_items) { - this.$emit("hide-selection", this.contentSelection); - } - this.$emit("reset-selection"); - }, }, };