X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c4621fbe523cc60770f4176141b83083f1f3802a..6b562ae2431132439e488f509d698800ee8ebe7d:/src/views/process-log-panel/process-log-main-card.tsx?ds=sidebyside 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..42df2d92 100644 --- a/src/views/process-log-panel/process-log-main-card.tsx +++ b/src/views/process-log-panel/process-log-main-card.tsx @@ -53,10 +53,18 @@ interface ProcessLogMainCardDataProps { process: Process; } -export type ProcessLogMainCardProps = ProcessLogMainCardDataProps & CodeSnippetDataProps & ProcessLogFormDataProps & ProcessLogFormActionProps; +export interface ProcessLogMainCardActionProps { + onContextMenu: (event: React.MouseEvent, process: Process) => 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 }: ProcessLogMainCardProps & WithStyles) => Back @@ -65,32 +73,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'> + + + + + + + Go to Log collection + - +