[ARVADOS-WORKBENCH2] updated: 2.4.0-17-g03578e71

Git user git at public.arvados.org
Tue Apr 12 18:52:09 UTC 2022


Summary of changes:
 src/views-components/data-explorer/renderers.tsx | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

       via  03578e716a63e7c5e0ce75cb70d0aaa803c02a77 (commit)
      from  18425d0dfa8a652fef8377a6fb09018f55d2beec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 03578e716a63e7c5e0ce75cb70d0aaa803c02a77
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Tue Apr 12 15:51:29 2022 -0300

    18881: Fixes the "non-status" indication on objects that aren't processes.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx
index fe1bd07c..cd9f972e 100644
--- a/src/views-components/data-explorer/renderers.tsx
+++ b/src/views-components/data-explorer/renderers.tsx
@@ -833,19 +833,21 @@ export const ProcessStatus = compose(
         return { process: getProcess(props.uuid)(state.resources) };
     }),
     withStyles({}, { withTheme: true }))
-    ((props: { process?: Process, theme: ArvadosTheme }) => {
-        const status = props.process ? getProcessStatus(props.process) : "-";
-        return <Chip label={status}
+    ((props: { process?: Process, theme: ArvadosTheme }) =>
+        props.process
+        ? <Chip label={getProcessStatus(props.process)}
             style={{
                 height: props.theme.spacing.unit * 3,
                 width: props.theme.spacing.unit * 12,
-                backgroundColor: getProcessStatusColor(status, props.theme),
+                backgroundColor: getProcessStatusColor(
+                    getProcessStatus(props.process), props.theme),
                 color: props.theme.palette.common.white,
                 fontSize: '0.875rem',
                 borderRadius: props.theme.spacing.unit * 0.625,
             }}
-        />;
-    });
+        />
+        : <Typography>-</Typography>
+    );
 
 export const ProcessStartDate = connect(
     (state: RootState, props: { uuid: string }) => {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list