From be1c3d15a9fff608895008e1e213bfe412b99dd1 Mon Sep 17 00:00:00 2001 From: Travis Rich Date: Thu, 16 Apr 2026 14:34:34 -0400 Subject: [PATCH] Hide dashboard dropdown for non members. Flip quick link icon order --- .../GlobalControls/GlobalControls.tsx | 4 +-- .../ScopeDropdown/ScopeDropdown.tsx | 34 +++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/client/components/GlobalControls/GlobalControls.tsx b/client/components/GlobalControls/GlobalControls.tsx index 728d447f26..fc7ed0287e 100644 --- a/client/components/GlobalControls/GlobalControls.tsx +++ b/client/components/GlobalControls/GlobalControls.tsx @@ -29,7 +29,7 @@ const GlobalControls = (props: Props) => { loginData, communityData: { hideCreatePubButton }, scopeData: { - activePermissions: { canManage }, + activePermissions: { canManage, canView }, }, } = usePageContext(); @@ -87,7 +87,7 @@ const GlobalControls = (props: Props) => { <> {canCreatePub && } {renderSearch()} - {renderDashboardMenu()} + {canView && renderDashboardMenu()} {renderNotificiations()} ); diff --git a/client/components/ScopeDropdown/ScopeDropdown.tsx b/client/components/ScopeDropdown/ScopeDropdown.tsx index 993c2dd0a1..7c25107066 100644 --- a/client/components/ScopeDropdown/ScopeDropdown.tsx +++ b/client/components/ScopeDropdown/ScopeDropdown.tsx @@ -190,23 +190,6 @@ const ScopeDropdown = (props: Props) => { {scope.showSettings && scope.type !== 'Page' && (
- {renderDropddownButton( - scope, - 'settings', - pubPubIcons.settings, - )} - {renderDropddownButton( - scope, - 'members', - pubPubIcons.member, - )} - {renderDropddownButton(scope, 'impact', pubPubIcons.impact)} - {scope.type === 'Collection' && - renderDropddownButton( - scope, - 'layout', - pubPubIcons.layout, - )} { + {scope.type === 'Collection' && + renderDropddownButton( + scope, + 'layout', + pubPubIcons.layout, + )} + {renderDropddownButton(scope, 'impact', pubPubIcons.impact)} + {renderDropddownButton( + scope, + 'members', + pubPubIcons.member, + )} + {renderDropddownButton( + scope, + 'settings', + pubPubIcons.settings, + )}
)} {scope.showSettings && scope.type === 'Page' && (