mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
fix(core): remove joined workspace icon from current worksapce card (#8117)
close PD-1669
This commit is contained in:
@@ -107,6 +107,7 @@ export const WorkspaceSelector = ({
|
|||||||
className={className}
|
className={className}
|
||||||
showArrowDownIcon={showArrowDownIcon}
|
showArrowDownIcon={showArrowDownIcon}
|
||||||
disable={disable}
|
disable={disable}
|
||||||
|
hideCollaborationIcon={true}
|
||||||
data-testid="current-workspace-card"
|
data-testid="current-workspace-card"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -241,6 +241,7 @@ export const WorkspaceCard = forwardRef<
|
|||||||
showArrowDownIcon?: boolean;
|
showArrowDownIcon?: boolean;
|
||||||
avatarSize?: number;
|
avatarSize?: number;
|
||||||
disable?: boolean;
|
disable?: boolean;
|
||||||
|
hideCollaborationIcon?: boolean;
|
||||||
onClickOpenSettings?: (workspaceMetadata: WorkspaceMetadata) => void;
|
onClickOpenSettings?: (workspaceMetadata: WorkspaceMetadata) => void;
|
||||||
onClickEnableCloud?: (workspaceMetadata: WorkspaceMetadata) => void;
|
onClickEnableCloud?: (workspaceMetadata: WorkspaceMetadata) => void;
|
||||||
}
|
}
|
||||||
@@ -255,6 +256,7 @@ export const WorkspaceCard = forwardRef<
|
|||||||
onClickEnableCloud,
|
onClickEnableCloud,
|
||||||
className,
|
className,
|
||||||
disable,
|
disable,
|
||||||
|
hideCollaborationIcon,
|
||||||
...props
|
...props
|
||||||
},
|
},
|
||||||
ref
|
ref
|
||||||
@@ -314,7 +316,9 @@ export const WorkspaceCard = forwardRef<
|
|||||||
Enable Cloud
|
Enable Cloud
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
{information?.isOwner ? null : <CollaborationIcon />}
|
{hideCollaborationIcon || information?.isOwner ? null : (
|
||||||
|
<CollaborationIcon />
|
||||||
|
)}
|
||||||
{onClickOpenSettings && (
|
{onClickOpenSettings && (
|
||||||
<div
|
<div
|
||||||
className={styles.settingButton}
|
className={styles.settingButton}
|
||||||
|
|||||||
Reference in New Issue
Block a user