X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e9ddaee3dd51a6efbbfc509191ff00d552e1a169..f9dde5c781766b8be71d43d0f031c201a0edcfbb:/src/views/process-panel/process-information-card.tsx diff --git a/src/views/process-panel/process-information-card.tsx b/src/views/process-panel/process-information-card.tsx index 08131266..7f3e025f 100644 --- a/src/views/process-panel/process-information-card.tsx +++ b/src/views/process-panel/process-information-card.tsx @@ -11,7 +11,7 @@ import { ArvadosTheme } from '~/common/custom-theme'; import { MoreOptionsIcon, ProcessIcon } from '~/components/icon/icon'; import { DetailsAttribute } from '~/components/details-attribute/details-attribute'; import { Process } from '~/store/processes/process'; -import { getProcessStatus, getProcessStatusColor } from '../../store/processes/process'; +import { getProcessStatus, getProcessStatusColor } from '~/store/processes/process'; import { formatDate } from '~/common/formatters'; @@ -68,12 +68,14 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ export interface ProcessInformationCardDataProps { process: Process; onContextMenu: (event: React.MouseEvent) => void; + openProcessInputDialog: (uuid: string) => void; + navigateToOutput: (uuid: string) => void; } type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; export const ProcessInformationCard = withStyles(styles, { withTheme: true })( - ({ classes, process, onContextMenu, theme }: ProcessInformationCardProps) => + ({ classes, process, onContextMenu, theme, openProcessInputDialog, navigateToOutput }: ProcessInformationCardProps) => - + onContextMenu(event)}> @@ -119,8 +121,12 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( label='Workflow' value='???' /> - - + navigateToOutput(process.containerRequest.outputUuid!)}> + + + openProcessInputDialog(process.containerRequest.uuid)}> + +