16068: Use composed process status for process details attribute
[arvados-workbench2.git] / src / views / process-panel / process-details-attributes.tsx
index 4eadb656c6cde99f41afc7583f643ee7409e835d..d0e593d50aec3a1639886c159f62b05ca474b4f4 100644 (file)
@@ -10,7 +10,7 @@ import { resourceLabel } from "common/labels";
 import { DetailsAttribute } from "components/details-attribute/details-attribute";
 import { ResourceKind } from "models/resource";
 import { ContainerRunTime, ResourceOwnerWithName } from "views-components/data-explorer/renderers";
-import { getProcess } from "store/processes/process";
+import { getProcess, getProcessStatus } from "store/processes/process";
 import { RootState } from "store/store";
 import { connect } from "react-redux";
 import { ProcessResource } from "models/process";
@@ -85,7 +85,7 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })(
                     <DetailsAttribute label='Container UUID' value={containerRequest.containerUuid} />
                 </Grid>
                 {!props.hideProcessPanelRedundantFields && <Grid item xs={12} md={mdSize}>
-                    <DetailsAttribute label='Status' value={containerRequest.state} />
+                    <DetailsAttribute label='Status' value={getProcessStatus({containerRequest, container})} />
                 </Grid>}
                 <Grid item xs={12} md={mdSize}>
                     <DetailsAttribute label='Created at' value={formatDate(containerRequest.createdAt)} />