Skip to content

Commit 1cab367

Browse files
committed
[dashboard] Hide 'stopping' & unpinned workspaces from 'Active'
1 parent 0ef8ff9 commit 1cab367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dashboard/src/workspaces/workspace-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ export class WorkspaceModel implements Disposable, Partial<GitpodClient> {
126126

127127
protected isActive(info: WorkspaceInfo): boolean {
128128
return info.workspace.pinned ||
129-
(!!info.latestInstance && info.latestInstance.status?.phase !== 'stopped');
129+
(!!info.latestInstance && !['stopping', 'stopped'].includes(info.latestInstance.status?.phase));
130130
}
131131

132132
public getAllFetchedWorkspaces(): Map<string, WorkspaceInfo> {
133133
return this.workspaces;
134134
}
135135

136-
}
136+
}

0 commit comments

Comments
 (0)