X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/83ae89e7dfd3e152d2154285347a3b268606473d..fa9e1f065eefa7265879869e4b45eb76be64b4ce:/src/views/process-panel/process-subprocesses-card.tsx diff --git a/src/views/process-panel/process-subprocesses-card.tsx b/src/views/process-panel/process-subprocesses-card.tsx index 1bf2d4df..7a1901f1 100644 --- a/src/views/process-panel/process-subprocesses-card.tsx +++ b/src/views/process-panel/process-subprocesses-card.tsx @@ -14,8 +14,7 @@ import { Process, getProcessStatus, getProcessRuntime } from '~/store/processes/ import { formatTime } from '~/common/formatters'; import { getProcessStatusColor } from '~/store/processes/process'; -export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader' - | 'header' | 'headerActive' | 'headerCompleted' | 'headerQueued' | 'headerFailed' | 'headerCanceled'; +export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader' | 'header' | 'moreOptions'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ label: { @@ -57,31 +56,11 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ paddingTop: 0, paddingBottom: 0, }, - headerActive: { - backgroundColor: theme.customs.colors.blue500, - }, - headerCompleted: { - backgroundColor: theme.customs.colors.green700, - }, - headerQueued: { - backgroundColor: theme.customs.colors.grey500, - }, - headerFailed: { - backgroundColor: theme.customs.colors.red900, - }, - headerCanceled: { - backgroundColor: theme.customs.colors.red900, - }, + moreOptions: { + position: 'absolute' + } }); -export enum SubprocessesStatus { - ACTIVE = 'Active', - COMPLETED = 'Completed', - QUEUED = 'Queued', - FAILED = 'Failed', - CANCELED = 'Canceled' -} - export interface SubprocessItemProps { title: string; status: string; @@ -93,7 +72,7 @@ export interface ProcessSubprocessesCardDataProps { subprocess: Process; } -type ProcessSubprocessesCardProps = ProcessSubprocessesCardDataProps & WithStyles; +type ProcessSubprocessesCardProps = ProcessSubprocessesCardDataProps & WithStyles; export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })( ({ classes, onContextMenu, subprocess, theme }: ProcessSubprocessesCardProps) => { @@ -107,12 +86,14 @@ export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })( {getProcessStatus(subprocess)} - - - + + + + + } title={ @@ -127,4 +108,4 @@ export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })( label="Runtime" value={formatTime(getProcessRuntime(subprocess))} /> ; - }); \ No newline at end of file + });