Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/components/GlobalControls/GlobalControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const GlobalControls = (props: Props) => {
loginData,
communityData: { hideCreatePubButton },
scopeData: {
activePermissions: { canManage },
activePermissions: { canManage, canView },
},
} = usePageContext();

Expand Down Expand Up @@ -87,7 +87,7 @@ const GlobalControls = (props: Props) => {
<>
{canCreatePub && <CreatePubButton />}
{renderSearch()}
{renderDashboardMenu()}
{canView && renderDashboardMenu()}
{renderNotificiations()}
</>
);
Expand Down
34 changes: 17 additions & 17 deletions client/components/ScopeDropdown/ScopeDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,6 @@ const ScopeDropdown = (props: Props) => {
</div>
{scope.showSettings && scope.type !== 'Page' && (
<div className="settings">
{renderDropddownButton(
scope,
'settings',
pubPubIcons.settings,
)}
{renderDropddownButton(
scope,
'members',
pubPubIcons.member,
)}
{renderDropddownButton(scope, 'impact', pubPubIcons.impact)}
{scope.type === 'Collection' &&
renderDropddownButton(
scope,
'layout',
pubPubIcons.layout,
)}
<a
href={`/${
(
Expand All @@ -221,6 +204,23 @@ const ScopeDropdown = (props: Props) => {
<Icon icon="globe" iconSize={12} />
</Tooltip>
</a>
{scope.type === 'Collection' &&
renderDropddownButton(
scope,
'layout',
pubPubIcons.layout,
)}
{renderDropddownButton(scope, 'impact', pubPubIcons.impact)}
{renderDropddownButton(
scope,
'members',
pubPubIcons.member,
)}
{renderDropddownButton(
scope,
'settings',
pubPubIcons.settings,
)}
</div>
)}
{scope.showSettings && scope.type === 'Page' && (
Expand Down
Loading