From: Stephen Smith Date: Thu, 16 Feb 2023 20:23:20 +0000 (-0500) Subject: 20000: Hide run button when container is running or cancelled even when priority=0 X-Git-Tag: 2.6.0~16^2~4 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/b71cb584942873132af6df8bc65ae28e35f13065 20000: Hide run button when container is running or cancelled even when priority=0 Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/views/process-panel/process-details-card.tsx b/src/views/process-panel/process-details-card.tsx index be046004..6ee576b5 100644 --- a/src/views/process-panel/process-details-card.tsx +++ b/src/views/process-panel/process-details-card.tsx @@ -84,7 +84,10 @@ export const ProcessDetailsCard = withStyles(styles)( if (process.containerRequest.state === ContainerRequestState.UNCOMMITTED) { runAction = startProcess; } else if (process.containerRequest.state === ContainerRequestState.COMMITTED && - process.containerRequest.priority === 0) { + process.containerRequest.priority === 0 && + // Don't show run button when container is present & running or cancelled + !(process.container && (process.container.state === ContainerState.RUNNING || + process.container.state === ContainerState.CANCELLED))) { runAction = resumeOnHoldWorkflow; }