X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e99aebfc86f72db64d3bd04edeaabd5c31b9b3e6..b7de31f185fccd2f9b276c1e89754d288e7facfe:/src/views/workflow-panel/workflow-description-card.tsx diff --git a/src/views/workflow-panel/workflow-description-card.tsx b/src/views/workflow-panel/workflow-description-card.tsx index b4b9f20a..02408b06 100644 --- a/src/views/workflow-panel/workflow-description-card.tsx +++ b/src/views/workflow-panel/workflow-description-card.tsx @@ -22,7 +22,7 @@ import { DataTableDefaultView } from '~/components/data-table-default-view/data- import { WorkflowResource, parseWorkflowDefinition, getWorkflowInputs, getInputLabel, stringifyInputType } from '~/models/workflow'; import { WorkflowGraph } from "~/views/workflow-panel/workflow-graph"; -export type CssRules = 'root' | 'tab' | 'inputTab' | 'descriptionTab' | 'inputsTable'; +export type CssRules = 'root' | 'tab' | 'inputTab' | 'graphTab' | 'descriptionTab' | 'inputsTable'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -39,6 +39,11 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ paddingBottom: theme.spacing.unit / 2, } }, + graphTab: { + overflow: 'auto', + height: '450px', + marginTop: theme.spacing.unit, + }, descriptionTab: { overflow: 'auto', maxHeight: '300px', @@ -67,6 +72,9 @@ export const WorkflowDetailsCard = withStyles(styles)( render() { const { classes, workflow } = this.props; + if (workflow) { + console.log(workflow.definition); + } const { value } = this.state; return
@@ -91,7 +99,7 @@ export const WorkflowDetailsCard = withStyles(styles)( messages={['Please select a workflow to see its inputs.']} /> } } - {value === 2 && + {value === 2 && {workflow ? :