From 3bfacb7db0a5521f3d064b6dd3080a55871e335c Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 12 Sep 2023 17:50:07 -0400 Subject: [PATCH] Implement Galaxy Markdown tag history_dataset_as_table. --- .../Elements/HistoryDatasetAsTable.vue | 126 ++++++++++++++++++ .../components/Markdown/MarkdownContainer.vue | 19 +++ lib/galaxy/managers/markdown_parse.py | 10 ++ lib/galaxy/managers/markdown_util.py | 19 +++ 4 files changed, 174 insertions(+) create mode 100644 client/src/components/Markdown/Elements/HistoryDatasetAsTable.vue diff --git a/client/src/components/Markdown/Elements/HistoryDatasetAsTable.vue b/client/src/components/Markdown/Elements/HistoryDatasetAsTable.vue new file mode 100644 index 000000000000..72f2097fe444 --- /dev/null +++ b/client/src/components/Markdown/Elements/HistoryDatasetAsTable.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/client/src/components/Markdown/MarkdownContainer.vue b/client/src/components/Markdown/MarkdownContainer.vue index 9ece148b02b6..5fdb2b503b47 100644 --- a/client/src/components/Markdown/MarkdownContainer.vue +++ b/client/src/components/Markdown/MarkdownContainer.vue @@ -2,6 +2,7 @@ import { computed, ref } from "vue"; import HistoryDatasetAsImage from "./Elements/HistoryDatasetAsImage.vue"; +import HistoryDatasetAsTable from "./Elements/HistoryDatasetAsTable.vue"; import HistoryDatasetCollectionDisplay from "./Elements/HistoryDatasetCollection/CollectionDisplay.vue"; import HistoryDatasetDetails from "./Elements/HistoryDatasetDetails.vue"; import HistoryDatasetDisplay from "./Elements/HistoryDatasetDisplay.vue"; @@ -61,6 +62,17 @@ const props = defineProps({ const isCollapsible = computed(() => props.args.collapse !== undefined); const isVisible = computed(() => !isCollapsible.value || toggle.value); + +function argToBoolean(args, name, booleanDefault) { + const valueAsString = args[name]; + if (valueAsString == "true") { + return true; + } else if (valueAsString == "false") { + return false; + } else { + return booleanDefault; + } +}