diff --git a/components/dashboard/src/start/CreateWorkspace.tsx b/components/dashboard/src/start/CreateWorkspace.tsx index d48bb5bf5cda05..e4f85e8f680f70 100644 --- a/components/dashboard/src/start/CreateWorkspace.tsx +++ b/components/dashboard/src/start/CreateWorkspace.tsx @@ -85,6 +85,9 @@ export default class CreateWorkspace extends React.Component ; break; + case ErrorCodes.USER_BLOCKED: + window.location.href = '/blocked'; + return; case ErrorCodes.NOT_FOUND: return ; case ErrorCodes.PLAN_DOES_NOT_ALLOW_PRIVATE_REPOS: diff --git a/components/dashboard/src/start/StartWorkspace.tsx b/components/dashboard/src/start/StartWorkspace.tsx index e395bd412fafd0..c3b601d49f8fea 100644 --- a/components/dashboard/src/start/StartWorkspace.tsx +++ b/components/dashboard/src/start/StartWorkspace.tsx @@ -8,6 +8,7 @@ import EventEmitter from "events"; import React, { useEffect, Suspense } from "react"; import { DisposableCollection, WorkspaceInstance, WorkspaceImageBuild, Workspace, WithPrebuild } from "@gitpod/gitpod-protocol"; import { HeadlessLogEvent } from "@gitpod/gitpod-protocol/lib/headless-workspace-log"; +import { ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error"; import ContextMenu, { ContextMenuEntry } from "../components/ContextMenu"; import CaretDown from "../icons/CaretDown.svg"; import { getGitpodService, gitpodHostUrl } from "../service/service"; @@ -95,6 +96,10 @@ export default class StartWorkspace extends React.ComponentPreparing workspace …

- :

{error.message}

; + let statusMessage = !!error ? undefined :

Preparing workspace …

; switch (this.state?.workspaceInstance?.status.phase) { // unknown indicates an issue within the system in that it cannot determine the actual phase of