diff --git a/client/src/components/WorkflowInvocationState/VegaWrapper.vue b/client/src/components/Common/VegaWrapper.vue similarity index 100% rename from client/src/components/WorkflowInvocationState/VegaWrapper.vue rename to client/src/components/Common/VegaWrapper.vue diff --git a/client/src/components/Markdown/Markdown.vue b/client/src/components/Markdown/Markdown.vue index 85534cc86c71..435574c7d6b2 100644 --- a/client/src/components/Markdown/Markdown.vue +++ b/client/src/components/Markdown/Markdown.vue @@ -46,6 +46,7 @@
+ +const VegaWrapper = () => import("@/components/Common/VegaWrapper.vue"); +import { computed } from "vue"; + +const props = defineProps<{ + content: string; +}>(); + +const spec = computed(() => ({ + ...JSON.parse(props.content), + width: "container", +})); + + + diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue index 91782651b709..db1c58667e5c 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue @@ -6,7 +6,7 @@ import { type ComputedRef } from "vue"; import { type components, GalaxyApi } from "@/api"; import { errorMessageAsString } from "@/utils/simple-error"; -const VegaWrapper = () => import("./VegaWrapper.vue"); +const VegaWrapper = () => import("@/components/Common/VegaWrapper.vue"); const props = defineProps({ invocationId: {