diff --git a/client/src/components/Datatypes/model.ts b/client/src/components/Datatypes/model.ts index 45334ba8d255..797d0349e199 100644 --- a/client/src/components/Datatypes/model.ts +++ b/client/src/components/Datatypes/model.ts @@ -14,10 +14,18 @@ export class DatatypesMapperModel { this.datatypesMapping = typesAndMapping.datatypes_mapping; } + /** + * Checks if a given child datatype is a subtype of a parent datatype. + * @param child - The child datatype extension as registered in the datatypes registry. + * @param parent - The parent datatype, which can be an extension or explicit class name + * Can also be used with extensionless abstract datatypes (e.g. "galaxy.datatypes.images.Image") + * @returns A boolean indicating whether the child is a subtype of the parent. + */ isSubType(child: string, parent: string): boolean { const mapping = this.datatypesMapping; const childClassName = mapping.ext_to_class_name[child]; - const parentClassName = mapping.ext_to_class_name[parent]; + const parentClassName = mapping.ext_to_class_name[parent] || parent; + if (!childClassName || !parentClassName) { return false; } diff --git a/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue b/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue index 547f6bcc9353..d44e22d74b4b 100644 --- a/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue +++ b/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue @@ -65,6 +65,9 @@ type="iframe" aspect="16by9" :src="displayUrl" /> +
-                                    {{ itemContent.item_data }}
-                                
+ {{ itemContent.item_data }} +
No content found.
Show More... @@ -99,10 +102,13 @@ import LoadingSpan from "components/LoadingSpan"; import { UrlDataProvider } from "components/providers/UrlDataProvider"; import { getAppRoot } from "onload/loadConfig"; +import HistoryDatasetAsImage from "./HistoryDatasetAsImage.vue"; + export default { components: { LoadingSpan, UrlDataProvider, + HistoryDatasetAsImage, }, props: { args: {