Skip to content

Commit 927117f

Browse files
committed
[workspace] show ide alert on errors (#11035)
1 parent cfc1d71 commit 927117f

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
@@ -452,6 +452,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
452452
let title = undefined;
453453
let isTimedOut = false;
454454
let isStoppingOrStopped = false;
455+
let isError = error ? true : false;
455456
let statusMessage = !!error ? undefined : <p className="text-base text-gray-400">Preparing workspace …</p>;
456457
const contextURL = ContextURL.getNormalizedURL(this.state.workspace)?.toString();
457458
const useLatest = !!this.state.workspaceInstance?.configuration?.ideConfig?.useLatest;
@@ -719,7 +720,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
719720
phase={phase}
720721
error={error}
721722
title={title}
722-
showLatestIdeWarning={!isTimedOut && !isStoppingOrStopped && useLatest}
723+
showLatestIdeWarning={isError || (!isTimedOut && !isStoppingOrStopped && useLatest)}
723724
>
724725
{statusMessage}
725726
</StartPage>

0 commit comments

Comments
 (0)