@@ -450,8 +450,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
450
450
const withPrebuild = WithPrebuild . is ( this . state . workspace ?. context ) ;
451
451
let phase : StartPhase | undefined = StartPhase . Preparing ;
452
452
let title = undefined ;
453
- let isTimedOut = false ;
454
- let isStoppingOrStopped = false ;
453
+ let isStoppingOrStoppedPhase = false ;
455
454
let isError = error ? true : false ;
456
455
let statusMessage = ! ! error ? undefined : < p className = "text-base text-gray-400" > Preparing workspace …</ p > ;
457
456
const contextURL = ContextURL . getNormalizedURL ( this . state . workspace ) ?. toString ( ) ;
@@ -626,7 +625,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
626
625
627
626
// Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
628
627
case "stopping" :
629
- isStoppingOrStopped = true ;
628
+ isStoppingOrStoppedPhase = true ;
630
629
if ( isPrebuild ) {
631
630
return (
632
631
< StartPage title = "Prebuild in Progress" >
@@ -664,7 +663,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
664
663
665
664
// Stopped means the workspace ended regularly because it was shut down.
666
665
case "stopped" :
667
- isStoppingOrStopped = true ;
666
+ isStoppingOrStoppedPhase = true ;
668
667
phase = StartPhase . Stopped ;
669
668
if ( this . state . hasImageBuildLogs ) {
670
669
const restartWithDefaultImage = ( event : React . MouseEvent ) => {
@@ -682,7 +681,6 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
682
681
}
683
682
if ( ! isPrebuild && this . state . workspaceInstance . status . conditions . timeout ) {
684
683
title = "Timed Out" ;
685
- isTimedOut = true ;
686
684
}
687
685
statusMessage = (
688
686
< div >
@@ -720,7 +718,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
720
718
phase = { phase }
721
719
error = { error }
722
720
title = { title }
723
- showLatestIdeWarning = { isError || ( ! isTimedOut && ! isStoppingOrStopped && useLatest ) }
721
+ showLatestIdeWarning = { useLatest && ( isError || ! isStoppingOrStoppedPhase ) }
724
722
>
725
723
{ statusMessage }
726
724
</ StartPage >
0 commit comments