13494: Adds version number on collection's status renderer.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 18 Nov 2020 18:21:23 +0000 (15:21 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 18 Nov 2020 18:21:23 +0000 (15:21 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/views-components/data-explorer/renderers.tsx

index 138c76efd24a9ba03cc66a71e51bacc775c6c601..6d95196d3ed1ce8eb79fa8600d8cc4c618f56c92 100644 (file)
@@ -457,8 +457,8 @@ export const CollectionStatus = connect((state: RootState, props: { uuid: string
         return { collection: getResource<CollectionResource>(props.uuid)(state.resources) };
     })((props: { collection: CollectionResource }) =>
         (props.collection.uuid !== props.collection.currentVersionUuid)
-        ? <Typography>old version</Typography>
-        : <Typography>current</Typography>
+        ? <Typography>version {props.collection.version}</Typography>
+        : <Typography>head version</Typography>
     );
 
 export const ProcessStatus = compose(