File tree 2 files changed +6
-2
lines changed
components/WorkspaceStatusBar 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const Language = {
22
22
starting : "Building" ,
23
23
stopping : "Stopping" ,
24
24
error : "Build Failed" ,
25
+ loading : "Loading Status"
25
26
}
26
27
27
28
export interface WorkspaceStatusBarProps {
@@ -79,6 +80,7 @@ export const WorkspaceStatusBar: React.FC<WorkspaceStatusBarProps> = ({
79
80
{ workspaceStatus === "stopped" && Language . stopped }
80
81
{ workspaceStatus === "stopping" && Language . stopping }
81
82
{ workspaceStatus === "error" && Language . error }
83
+ { workspaceStatus === "loading" && Language . loading }
82
84
</ Box >
83
85
</ div >
84
86
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { Workspace } from "../../components/Workspace/Workspace"
9
9
import { firstOrItem } from "../../util/array"
10
10
import { XServiceContext } from "../../xServices/StateContext"
11
11
12
- export type WorkspaceStatus = "started" | "starting" | "stopped" | "stopping" | "error"
12
+ export type WorkspaceStatus = "started" | "starting" | "stopped" | "stopping" | "error" | "loading"
13
13
14
14
export const WorkspacePage : React . FC = ( ) => {
15
15
const { workspace : workspaceQueryParam } = useParams ( )
@@ -28,8 +28,10 @@ export const WorkspacePage: React.FC = () => {
28
28
workspaceStatus = "starting"
29
29
} else if ( workspaceState . hasTag ( "stopping" ) ) {
30
30
workspaceStatus = "stopping"
31
- } else {
31
+ } else if ( workspaceState . matches ( "ready.build.error" ) ) {
32
32
workspaceStatus = "error"
33
+ } else {
34
+ workspaceStatus = "loading"
33
35
}
34
36
35
37
/**
You can’t perform that action at this time.
0 commit comments