X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c4621fbe523cc60770f4176141b83083f1f3802a..2a60ee742601aec7a0bc6ee832da39d834d82eb7:/src/views/process-log-panel/process-log-main-card.tsx diff --git a/src/views/process-log-panel/process-log-main-card.tsx b/src/views/process-log-panel/process-log-main-card.tsx index 29fd4ae2..6b2521c0 100644 --- a/src/views/process-log-panel/process-log-main-card.tsx +++ b/src/views/process-log-panel/process-log-main-card.tsx @@ -43,8 +43,12 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ color: theme.customs.colors.green700 }, link: { - alignSelf: 'flex-end', - textAlign: 'right' + fontSize: '0.875rem', + color: theme.palette.primary.main, + textAlign: 'right', + '&:hover': { + cursor: 'pointer' + } } }); @@ -53,10 +57,19 @@ interface ProcessLogMainCardDataProps { process: Process; } -export type ProcessLogMainCardProps = ProcessLogMainCardDataProps & CodeSnippetDataProps & ProcessLogFormDataProps & ProcessLogFormActionProps; +export interface ProcessLogMainCardActionProps { + onContextMenu: (event: React.MouseEvent, process: Process) => void; + navigateToLogCollection: (uuid: string) => void; +} + +export type ProcessLogMainCardProps = ProcessLogMainCardDataProps + & ProcessLogMainCardActionProps + & CodeSnippetDataProps + & ProcessLogFormDataProps + & ProcessLogFormActionProps; export const ProcessLogMainCard = withStyles(styles)( - ({ classes, process, selectedFilter, filters, onChange, lines }: ProcessLogMainCardProps & WithStyles) => + ({ classes, process, selectedFilter, filters, onChange, lines, onContextMenu, navigateToLogCollection }: ProcessLogMainCardProps & WithStyles) => Back @@ -65,32 +78,35 @@ export const ProcessLogMainCard = withStyles(styles)( } action={ -
- + + onContextMenu(event, process)} aria-label="More options"> -
- } + } title={ - + {process.containerRequest.name} - - } + } subheader={process.containerRequest.description} /> {lines.length > 0 - ? < Grid container spacing={24} alignItems='center'> - - - - - - Go to Log collection - + ? < Grid + container + spacing={24} + direction='column'> + + + + + + navigateToLogCollection(process.containerRequest.logUuid!)}> + Go to Log collection + + - +