Skip to content

Commit 3e8d57d

Browse files
committed
[workspace] show ide alert on errors (#11035)
1 parent d1ac344 commit 3e8d57d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/dashboard/src/start/StartWorkspace.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
449449
let title = undefined;
450450
let isTimedOut = false;
451451
let isStoppingOrStopped = false;
452+
let isError = error ? true : false;
452453
let statusMessage = !!error ? undefined : <p className="text-base text-gray-400">Preparing workspace …</p>;
453454
const contextURL = ContextURL.getNormalizedURL(this.state.workspace)?.toString();
454455
const useLatest = !!this.state.workspaceInstance?.configuration?.ideConfig?.useLatest;
@@ -717,7 +718,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
717718
phase={phase}
718719
error={error}
719720
title={title}
720-
showLatestIdeWarning={!isTimedOut && !isStoppingOrStopped && useLatest}
721+
showLatestIdeWarning={isError || (!isTimedOut && !isStoppingOrStopped && useLatest)}
721722
>
722723
{statusMessage}
723724
</StartPage>

0 commit comments

Comments
 (0)