X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/fc3d9ac09fbb1cdc4fb4b00f2f704795ad365110..f4e410a5984226818301332c25ac178403c2e0e9:/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 f32291ac..42df2d92 100644 --- a/src/views/process-log-panel/process-log-main-card.tsx +++ b/src/views/process-log-panel/process-log-main-card.tsx @@ -15,6 +15,7 @@ import { MoreOptionsIcon, ProcessIcon } from '~/components/icon/icon'; import { ArvadosTheme } from '~/common/custom-theme'; import { CodeSnippetDataProps } from '~/components/code-snippet/code-snippet'; import { BackIcon } from '~/components/icon/icon'; +import { DefaultView } from '~/components/default-view/default-view'; type CssRules = 'backLink' | 'backIcon' | 'card' | 'title' | 'iconHeader' | 'link'; @@ -52,47 +53,63 @@ 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 + Back } action={ -
- + + onContextMenu(event, process)} aria-label="More options"> -
- } + } title={ {process.containerRequest.name} - - } + } subheader={process.containerRequest.description} /> - - - + {lines.length > 0 + ? < Grid + container + spacing={24} + direction='column'> + + + + + + + Go to Log collection + + + + + + - - - Go to Log collection - - - - - - + : + }
-
+ ); \ No newline at end of file