X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1703f15adf9e3875ff0c78ce78117a87b70ca05c..0eaad7ee985d2534e030e2d2839392435c33bba2:/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 788f2539..e5d15e72 100644 --- a/src/views/process-panel/process-information-card.tsx +++ b/src/views/process-panel/process-information-card.tsx @@ -68,12 +68,13 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ export interface ProcessInformationCardDataProps { process: Process; onContextMenu: (event: React.MouseEvent) => void; + openProcessInputDialog: (uuid: string) => void; } -type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; +type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; export const ProcessInformationCard = withStyles(styles, { withTheme: true })( - ({ classes, process, onContextMenu, theme }: ProcessInformationCardProps) => + ({ classes, process, onContextMenu, theme, openProcessInputDialog }: ProcessInformationCardProps) => - onContextMenu(event)}> - - + + onContextMenu(event)}> + + + } title={ @@ -101,9 +104,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( } subheader={ - + - {process.containerRequest.description || '(no-description)'} + {getDescription(process)} } /> @@ -118,9 +121,14 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( - + openProcessInputDialog(process.containerRequest.uuid)}> + + -); \ No newline at end of file +); + +const getDescription = (process: Process) => + process.containerRequest.description || '(no-description)';