From 51a1aef10e46338b4d77f684a57b82522c6cf9a8 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Fri, 10 Apr 2026 17:49:40 +0200 Subject: [PATCH] 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) --- ui/src/components/Layout.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ui/src/components/Layout.tsx b/ui/src/components/Layout.tsx index 0df6c6d..097cdb8 100644 --- a/ui/src/components/Layout.tsx +++ b/ui/src/components/Layout.tsx @@ -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')} > - Identity (Logto) @@ -158,13 +157,15 @@ export function Layout() { )} - - } - label="Open Server Dashboard" - onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')} - /> - + {showTenantPortal && ( + + } + label="Open Server Dashboard" + onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')} + /> + + )} );