fix: hide server dashboard link for vendor, remove fingerprint icon
Vendor persona doesn't need "Open Server Dashboard" in sidebar footer. Removed inline Fingerprint icon from Identity (Logto) menu item. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
|||||||
Sidebar,
|
Sidebar,
|
||||||
TopBar,
|
TopBar,
|
||||||
} from '@cameleer/design-system';
|
} from '@cameleer/design-system';
|
||||||
import { LayoutDashboard, ShieldCheck, Server, Users, Settings, Shield, Building, Fingerprint, ScrollText } from 'lucide-react';
|
import { LayoutDashboard, ShieldCheck, Server, Users, Settings, Shield, Building, ScrollText } from 'lucide-react';
|
||||||
import { useAuth } from '../auth/useAuth';
|
import { useAuth } from '../auth/useAuth';
|
||||||
import { useScopes } from '../auth/useScopes';
|
import { useScopes } from '../auth/useScopes';
|
||||||
import { useOrgStore } from '../auth/useOrganization';
|
import { useOrgStore } from '../auth/useOrganization';
|
||||||
@@ -87,7 +87,6 @@ export function Layout() {
|
|||||||
style={{ padding: '6px 12px 6px 36px', fontSize: 13, cursor: 'pointer', color: 'var(--text-muted)' }}
|
style={{ padding: '6px 12px 6px 36px', fontSize: 13, cursor: 'pointer', color: 'var(--text-muted)' }}
|
||||||
onClick={() => window.open(`${window.location.protocol}//${window.location.hostname}:3002`, '_blank', 'noopener')}
|
onClick={() => window.open(`${window.location.protocol}//${window.location.hostname}:3002`, '_blank', 'noopener')}
|
||||||
>
|
>
|
||||||
<Fingerprint size={13} style={{ verticalAlign: 'middle', marginRight: 6 }} />
|
|
||||||
Identity (Logto)
|
Identity (Logto)
|
||||||
</div>
|
</div>
|
||||||
</Sidebar.Section>
|
</Sidebar.Section>
|
||||||
@@ -158,13 +157,15 @@ export function Layout() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Sidebar.Footer>
|
{showTenantPortal && (
|
||||||
<Sidebar.FooterLink
|
<Sidebar.Footer>
|
||||||
icon={<Server size={16} />}
|
<Sidebar.FooterLink
|
||||||
label="Open Server Dashboard"
|
icon={<Server size={16} />}
|
||||||
onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')}
|
label="Open Server Dashboard"
|
||||||
/>
|
onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')}
|
||||||
</Sidebar.Footer>
|
/>
|
||||||
|
</Sidebar.Footer>
|
||||||
|
)}
|
||||||
</Sidebar>
|
</Sidebar>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user