X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e9d30481d8d57a0b906364ee115e136305b7ce79..e032ee615c409d084d84e35ae6d572999105dd22:/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 70fdb6b3b6..02408b06bb 100644 --- a/src/views/workflow-panel/workflow-description-card.tsx +++ b/src/views/workflow-panel/workflow-description-card.tsx @@ -14,8 +14,7 @@ import { TableHead, TableCell, TableBody, - TableRow, - Divider + TableRow } from '@material-ui/core'; import { ArvadosTheme } from '~/common/custom-theme'; import { WorkflowIcon } from '~/components/icon/icon'; @@ -23,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: { @@ -40,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', @@ -68,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
@@ -92,7 +99,7 @@ export const WorkflowDetailsCard = withStyles(styles)( messages={['Please select a workflow to see its inputs.']} /> } } - {value === 2 && + {value === 2 && {workflow ? :