X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/fc3d9ac09fbb1cdc4fb4b00f2f704795ad365110..2cfb56ef5060cbad461062690fad650f15c49731:/src/views/process-panel/process-subprocesses-card.tsx?ds=sidebyside diff --git a/src/views/process-panel/process-subprocesses-card.tsx b/src/views/process-panel/process-subprocesses-card.tsx index 57c127a0..f0525453 100644 --- a/src/views/process-panel/process-subprocesses-card.tsx +++ b/src/views/process-panel/process-subprocesses-card.tsx @@ -14,7 +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'; +export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader' | 'header'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ label: { @@ -58,14 +58,6 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, }); -export enum SubprocessesStatus { - ACTIVE = 'Active', - COMPLETED = 'Completed', - QUEUED = 'Queued', - FAILED = 'Failed', - CANCELED = 'Canceled' -} - export interface SubprocessItemProps { title: string; status: string; @@ -77,7 +69,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) => { @@ -91,12 +83,14 @@ export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })( {getProcessStatus(subprocess)} - - - + + + + + } title={ @@ -111,4 +105,4 @@ export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })( label="Runtime" value={formatTime(getProcessRuntime(subprocess))} /> ; - }); \ No newline at end of file + });