Skip to content

Commit

Permalink
Reuse datasetimage display for appropriate datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Apr 11, 2024
1 parent e2f2bfe commit 908d8ac
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,13 @@
<div v-else-if="error">{{ error }}</div>
<div v-else :class="contentClass">
<b-embed
v-if="
isSubTypeOfAny(
datasetType,
['pdf', 'html', 'galaxy.datatypes.images.Image'],
datatypesModel
)
"
v-if="isSubTypeOfAny(datasetType, ['pdf', 'html'], datatypesModel)"
type="iframe"
aspect="16by9"
:src="displayUrl" />
<HistoryDatasetAsImage
v-else-if="isSubTypeOfAny(datasetType, ['galaxy.datatypes.images.Image'], datatypesModel)"
:args="args" />
<div v-else-if="itemContent.item_data">
<div v-if="isSubTypeOfAny(datasetType, ['tabular'], datatypesModel)">
<UrlDataProvider
Expand Down Expand Up @@ -105,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: {
Expand Down

0 comments on commit 908d8ac

Please sign in to comment.