From 76c9ed05f1824fa8b4ef9d5265d7540f4a487bff Mon Sep 17 00:00:00 2001 From: Sas Swart Date: Fri, 13 Dec 2024 09:24:18 +0000 Subject: [PATCH] only show provisioner warnings for pending workspaces --- site/src/pages/WorkspacePage/Workspace.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/site/src/pages/WorkspacePage/Workspace.tsx b/site/src/pages/WorkspacePage/Workspace.tsx index af4883e73740a..f28cb775bdd6f 100644 --- a/site/src/pages/WorkspacePage/Workspace.tsx +++ b/site/src/pages/WorkspacePage/Workspace.tsx @@ -111,12 +111,13 @@ export const Workspace: FC = ({ ); const workspaceRunning = workspace.latest_build.status === "running"; + const workspacePending = workspace.latest_build.status === "pending"; const haveBuildLogs = (buildLogs ?? []).length > 0; + const shouldShowBuildLogs = haveBuildLogs && !workspaceRunning; const provisionersHealthy = - (workspace.latest_build.matched_provisioners?.available ?? 0) > 0; - const shouldDisplayBuildLogs = haveBuildLogs && !workspaceRunning; + (workspace.latest_build.matched_provisioners?.available ?? 1) > 0; const shouldShowProvisionerAlert = - !workspaceRunning && !haveBuildLogs && !provisionersHealthy; + workspacePending && !haveBuildLogs && !provisionersHealthy && !isRestarting; return (
= ({ /> )} - {shouldDisplayBuildLogs && ( + {shouldShowBuildLogs && ( )} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy