X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f63f3a5360ae6381d4b332bf86ef52b4e22107fb..b6a0a363d77d17455aab16e09eeb67b9f8067843:/src/views/process-panel/process-panel-root.tsx diff --git a/src/views/process-panel/process-panel-root.tsx b/src/views/process-panel/process-panel-root.tsx index feada3ac..e7f66573 100644 --- a/src/views/process-panel/process-panel-root.tsx +++ b/src/views/process-panel/process-panel-root.tsx @@ -2,68 +2,55 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { Grid } from '@material-ui/core'; import { ProcessInformationCard } from './process-information-card'; -import { DefaultView } from '~/components/default-view/default-view'; -import { ProcessIcon } from '~/components/icon/icon'; -import { Process } from '~/store/processes/process'; -import { SubprocessesCard } from './subprocesses-card'; +import { DefaultView } from 'components/default-view/default-view'; +import { ProcessIcon } from 'components/icon/icon'; +import { Process } from 'store/processes/process'; +import { SubprocessPanel } from 'views/subprocess-panel/subprocess-panel'; +import { SubprocessFilterDataProps } from 'components/subprocess-filter/subprocess-filter'; export interface ProcessPanelRootDataProps { process?: Process; + subprocesses: Array; + filters: Array; } export interface ProcessPanelRootActionProps { - onContextMenu: (event: React.MouseEvent) => void; + onContextMenu: (event: React.MouseEvent, process: Process) => void; + onToggle: (status: string) => void; + openProcessInputDialog: (uuid: string) => void; + navigateToOutput: (uuid: string) => void; + navigateToWorkflow: (uuid: string) => void; + cancelProcess: (uuid: string) => void; } export type ProcessPanelRootProps = ProcessPanelRootDataProps & ProcessPanelRootActionProps; -export const ProcessPanelRoot = (props: ProcessPanelRootProps) => - props.process - ? - +export const ProcessPanelRoot = ({ process, ...props }: ProcessPanelRootProps) => + process + ? + - - - { return; }} + process={process} + onContextMenu={event => props.onContextMenu(event, process)} + openProcessInputDialog={props.openProcessInputDialog} + navigateToOutput={props.navigateToOutput} + openWorkflow={props.navigateToWorkflow} + cancelProcess={props.cancelProcess} /> + + + : + justify='center' + style={{ minHeight: '100%' }}> ; +