File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,13 @@ export const Workspace: FC<WorkspaceProps> = ({
111
111
) ;
112
112
113
113
const workspaceRunning = workspace . latest_build . status === "running" ;
114
+ const workspacePending = workspace . latest_build . status === "pending" ;
114
115
const haveBuildLogs = ( buildLogs ?? [ ] ) . length > 0 ;
116
+ const shouldShowBuildLogs = haveBuildLogs && ! workspaceRunning ;
115
117
const provisionersHealthy =
116
- ( workspace . latest_build . matched_provisioners ?. available ?? 0 ) > 0 ;
117
- const shouldDisplayBuildLogs = haveBuildLogs && ! workspaceRunning ;
118
+ ( workspace . latest_build . matched_provisioners ?. available ?? 1 ) > 0 ;
118
119
const shouldShowProvisionerAlert =
119
- ! workspaceRunning && ! haveBuildLogs && ! provisionersHealthy ;
120
+ workspacePending && ! haveBuildLogs && ! provisionersHealthy && ! isRestarting ;
120
121
121
122
return (
122
123
< div
@@ -244,7 +245,7 @@ export const Workspace: FC<WorkspaceProps> = ({
244
245
/>
245
246
) }
246
247
247
- { shouldDisplayBuildLogs && (
248
+ { shouldShowBuildLogs && (
248
249
< WorkspaceBuildLogsSection logs = { buildLogs } />
249
250
) }
250
251
You can’t perform that action at this time.
0 commit comments