Skip to content

Commit

Permalink
Remove individual collection builders from history dropdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jan 7, 2025
1 parent ac59323 commit 93702a4
Showing 1 changed file with 0 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,35 +64,6 @@
<b-dropdown-item v-if="showBuildOptions" data-description="advanced build list" @click="listWizard(true)">
<span v-localize>Advanced Build List</span>
</b-dropdown-item>
<b-dropdown-group header-classes="subtle-header" header="Advanced">
<b-dropdown-item v-if="showBuildOptions" data-description="build list" @click="buildDatasetList">
<span v-localize>Build Dataset List</span>
</b-dropdown-item>
<b-dropdown-item
v-if="showBuildOptions"
data-description="build list of pairs"
@click="buildListOfPairs">
<span v-localize>Build List of Dataset Pairs</span>
</b-dropdown-item>
<b-dropdown-item
v-if="showBuildOptions"
data-description="build list of paires 2"
@click="buildListOfPairsV2">
<span v-localize>Build List of Dataset Pairs (v2)</span>
</b-dropdown-item>
<b-dropdown-item
v-if="showBuildOptions"
data-description="build list of paired_or_unpaired"
@click="buildListOfMixedPaired">
<span v-localize>Build List with Optional Pairing</span>
</b-dropdown-item>
<b-dropdown-item
v-if="showBuildOptions"
data-description="build collection from rules"
@click="buildCollectionFromRules">
<span v-localize>Build Collection from Rules</span>
</b-dropdown-item>
</b-dropdown-group>
</b-dropdown>

<b-modal id="hide-selected-content" title="Hide Selected Content?" title-tag="h2" @ok="hideSelected">
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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");
},
},
};
</script>
Expand Down

0 comments on commit 93702a4

Please sign in to comment.