Skip to content

Commit 882df7b

Browse files
committed
Display jobtaskprogress
1 parent 1f18eef commit 882df7b

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

src/components/job/JobDisplay.jsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@ import TypeSection from '../ui/TypeSection';
66
import TypeArray from '../ui/TypeArray';
77
import getJobDataVariant from '../../utils/getJobDataVariant';
88

9+
const JobTaskProgressTypeUnit = ({ value = {} }) => (
10+
<>
11+
<TextGrid title="percent" value={value.percent} hideNoValue />
12+
<TextGrid title="bytes" value={value.bytes} hideNoValue />
13+
</>
14+
);
15+
916
const JobTaskProgressType = ({ value = {} }) => (
10-
<TextGrid
11-
title={value.total}
12-
value={value.unit}
13-
hideNoValue
14-
hover
15-
/>
17+
<>
18+
<TextGrid title="Total" value={value.total} hideNoValue hover />
19+
<TypeSection
20+
component={JobTaskProgressTypeUnit}
21+
value={value.unit}
22+
hideNoValue
23+
/>
24+
</>
1625
);
1726

1827
const JobTaskSubstepType = ({ value = {} }) => (

0 commit comments

Comments
 (0)