Skip to content

Commit eac6434

Browse files
committed
[workspace] show ide alert on errors (#11035)
1 parent 9f60da9 commit eac6434

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;
@@ -720,7 +721,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
720721
phase={phase}
721722
error={error}
722723
title={title}
723-
showLatestIdeWarning={!isTimedOut && !isStoppingOrStopped && useLatest}
724+
showLatestIdeWarning={isError || (!isTimedOut && !isStoppingOrStopped && useLatest)}
724725
>
725726
{statusMessage}
726727
</StartPage>

0 commit comments

Comments
 (0)