Skip to content

Commit

Permalink
[dashboard] Hide 'stopping' & unpinned workspaces from 'Active'
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes committed May 12, 2021
1 parent 0ef8ff9 commit 1cab367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/dashboard/src/workspaces/workspace-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ export class WorkspaceModel implements Disposable, Partial<GitpodClient> {

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<string, WorkspaceInfo> {
return this.workspaces;
}

}
}

0 comments on commit 1cab367

Please sign in to comment.