X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/013ec8ccb46d5438aca45dc5173f838ec863ca7b..994434ce0881e5e4f309982790352e9af66cdb05:/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..7fcabcbb 100644 --- a/src/views/process-panel/process-information-card.tsx +++ b/src/views/process-panel/process-information-card.tsx @@ -70,11 +70,12 @@ export interface ProcessInformationCardDataProps { onContextMenu: (event: React.MouseEvent) => void; } -type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; +type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; export const ProcessInformationCard = withStyles(styles, { withTheme: true })( ({ classes, process, onContextMenu, theme }: ProcessInformationCardProps) => + {console.log(process)} - onContextMenu(event)}> - - + + onContextMenu(event)}> + + + } title={ @@ -101,9 +104,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( } subheader={ - + - {process.containerRequest.description || '(no-description)'} + {getDescription(process)} } /> @@ -123,4 +126,7 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( -); \ No newline at end of file +); + +const getDescription = (process: Process) => + process.containerRequest.description || '(no-description)';