diff --git a/src/renderer/components/+workspaces/workspaces.scss b/src/renderer/components/+workspaces/workspaces.scss index 95c036c304..b797213c1d 100644 --- a/src/renderer/components/+workspaces/workspaces.scss +++ b/src/renderer/components/+workspaces/workspaces.scss @@ -10,5 +10,10 @@ > .description { flex: 1; } + + &:not(.enabled) { + pointer-events: none; + opacity: 0.5; + } } } \ No newline at end of file diff --git a/src/renderer/components/+workspaces/workspaces.tsx b/src/renderer/components/+workspaces/workspaces.tsx index 8bddf48c24..42523401de 100644 --- a/src/renderer/components/+workspaces/workspaces.tsx +++ b/src/renderer/components/+workspaces/workspaces.tsx @@ -20,7 +20,7 @@ export class Workspaces extends React.Component { @computed get workspaces(): Workspace[] { const currentWorkspaces: Map = new Map() - workspaceStore.enabledWorkspacesList.forEach((w) => { + workspaceStore.workspacesList.forEach((w) => { currentWorkspaces.set(w.id, w) }) const allWorkspaces = new Map([ @@ -115,7 +115,7 @@ export class Workspaces extends React.Component { Workspaces
- {this.workspaces.map(({ id: workspaceId, name, description, ownerRef }) => { + {this.workspaces.map(({ id: workspaceId, name, description, ownerRef, enabled }) => { const isActive = workspaceStore.currentWorkspaceId === workspaceId; const isDefault = workspaceStore.isDefault(workspaceId); const isEditing = this.editingWorkspaces.has(workspaceId); @@ -131,7 +131,7 @@ export class Workspaces extends React.Component { validate: value => !workspaceStore.getByName(value.trim()) } return ( -
+
{!isEditing && (