From 1cab36716dc290f95536498906d9fc7e3386d1c4 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Fri, 7 May 2021 14:20:08 +0200 Subject: [PATCH] [dashboard] Hide 'stopping' & unpinned workspaces from 'Active' --- components/dashboard/src/workspaces/workspace-model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dashboard/src/workspaces/workspace-model.ts b/components/dashboard/src/workspaces/workspace-model.ts index 210ddb8de68f99..92b4fd21a628f0 100644 --- a/components/dashboard/src/workspaces/workspace-model.ts +++ b/components/dashboard/src/workspaces/workspace-model.ts @@ -126,11 +126,11 @@ export class WorkspaceModel implements Disposable, Partial { protected isActive(info: WorkspaceInfo): boolean { return info.workspace.pinned || - (!!info.latestInstance && info.latestInstance.status?.phase !== 'stopped'); + (!!info.latestInstance && !['stopping', 'stopped'].includes(info.latestInstance.status?.phase)); } public getAllFetchedWorkspaces(): Map { return this.workspaces; } -} \ No newline at end of file +}