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,
|
||||
TopBar,
|
||||
} 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 { useScopes } from '../auth/useScopes';
|
||||
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)' }}
|
||||
onClick={() => window.open(`${window.location.protocol}//${window.location.hostname}:3002`, '_blank', 'noopener')}
|
||||
>
|
||||
<Fingerprint size={13} style={{ verticalAlign: 'middle', marginRight: 6 }} />
|
||||
Identity (Logto)
|
||||
</div>
|
||||
</Sidebar.Section>
|
||||
@@ -158,6 +157,7 @@ export function Layout() {
|
||||
</>
|
||||
)}
|
||||
|
||||
{showTenantPortal && (
|
||||
<Sidebar.Footer>
|
||||
<Sidebar.FooterLink
|
||||
icon={<Server size={16} />}
|
||||
@@ -165,6 +165,7 @@ export function Layout() {
|
||||
onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')}
|
||||
/>
|
||||
</Sidebar.Footer>
|
||||
)}
|
||||
</Sidebar>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user