diff --git a/client/src/components/Markdown/Sections/Elements/DatasetCollectionElementPicker.vue b/client/src/components/Markdown/Sections/Elements/DatasetCollectionElementPicker.vue new file mode 100644 index 00000000000..5403d0b4b78 --- /dev/null +++ b/client/src/components/Markdown/Sections/Elements/DatasetCollectionElementPicker.vue @@ -0,0 +1,58 @@ + + + diff --git a/client/src/components/Markdown/Sections/MarkdownGalaxy.vue b/client/src/components/Markdown/Sections/MarkdownGalaxy.vue index a62fb8d9b85..78ac3194e73 100644 --- a/client/src/components/Markdown/Sections/MarkdownGalaxy.vue +++ b/client/src/components/Markdown/Sections/MarkdownGalaxy.vue @@ -14,6 +14,7 @@ import { useConfig } from "@/composables/config"; import { useInvocationStore } from "@/stores/invocationStore"; import { useWorkflowStore } from "@/stores/workflowStore"; +import DatasetCollectionElementPicker from "./Elements/DatasetCollectionElementPicker.vue"; import HistoryDatasetAsImage from "./Elements/HistoryDatasetAsImage.vue"; import HistoryDatasetAsTable from "./Elements/HistoryDatasetAsTable.vue"; import HistoryDatasetCollectionDisplay from "./Elements/HistoryDatasetCollection/CollectionDisplay.vue"; @@ -240,10 +241,22 @@ watch( :implicit-collection-jobs-id="args.implicit_collection_jobs_id" :name="name" /> + + + ): boolean { const requiredObject = getRequiredObject(name); + if (requiredObject === "history_dataset_id" && args.history_dataset_collection_id) { + // accept a collection where a dataset is expected. + // we don't control this anyway + return true; + } return !requiredObject || !!args[requiredObject]; }