mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Not showing disabled workspaces
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
ff80904592
commit
28549f7419
@ -10,10 +10,5 @@
|
|||||||
> .description {
|
> .description {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.enabled) {
|
|
||||||
pointer-events: none;
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ export class Workspaces extends React.Component {
|
|||||||
<Trans>Workspaces</Trans>
|
<Trans>Workspaces</Trans>
|
||||||
</h2>
|
</h2>
|
||||||
<div className="items flex column gaps">
|
<div className="items flex column gaps">
|
||||||
{this.workspaces.map(({ id: workspaceId, name, description, ownerRef, enabled }) => {
|
{this.workspaces.map(({ id: workspaceId, name, description, ownerRef }) => {
|
||||||
const isActive = workspaceStore.currentWorkspaceId === workspaceId;
|
const isActive = workspaceStore.currentWorkspaceId === workspaceId;
|
||||||
const isDefault = workspaceStore.isDefault(workspaceId);
|
const isDefault = workspaceStore.isDefault(workspaceId);
|
||||||
const isEditing = this.editingWorkspaces.has(workspaceId);
|
const isEditing = this.editingWorkspaces.has(workspaceId);
|
||||||
@ -131,7 +131,7 @@ export class Workspaces extends React.Component {
|
|||||||
validate: value => !workspaceStore.getByName(value.trim())
|
validate: value => !workspaceStore.getByName(value.trim())
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div key={workspaceId} className={cssNames(className, {enabled: enabled || isEditing})}>
|
<div key={workspaceId} className={cssNames(className)}>
|
||||||
{!isEditing && (
|
{!isEditing && (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<span className="name flex gaps align-center">
|
<span className="name flex gaps align-center">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user