15012: Adds run time column to all_processes. Fixes created_at column's label.
[arvados-workbench2.git] / src / views-components / data-explorer / renderers.tsx
index c118017d7a4e9eb91278d479b1fcdb22b81e76fe..90d8d977a2ef5103e8c227cd9935fddbee4a092c 100644 (file)
@@ -456,6 +456,12 @@ export const ProcessStatus = compose(
         </Typography>;
     });
 
+export const ProcessStartDate = connect(
+    (state: RootState, props: { uuid: string }) => {
+        const process = getProcess(props.uuid)(state.resources);
+        return { date: ( process && process.container ) ? process.container.startedAt : '' };
+    })((props: { date: string }) => renderDate(props.date));
+
 export const renderRunTime = (time: number) =>
     <Typography noWrap style={{ minWidth: '45px' }}>
         {formatTime(time, true)}