diff --git a/ui/src/components/Layout.tsx b/ui/src/components/Layout.tsx index 329795e..2cd00b7 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, ScrollText } from 'lucide-react'; +import { LayoutDashboard, ShieldCheck, Users, Settings, Shield, Building, ScrollText } from 'lucide-react'; import { useAuth } from '../auth/useAuth'; import { useScopes } from '../auth/useScopes'; import { useOrgStore } from '../auth/useOrganization'; @@ -31,7 +31,7 @@ export function Layout() { const location = useLocation(); const { logout } = useAuth(); const scopes = useScopes(); - const { username, organizations, currentOrgId } = useOrgStore(); + const { username } = useOrgStore(); const isVendor = scopes.has('platform:admin'); const isTenantAdmin = scopes.has('tenant:manage'); @@ -39,10 +39,6 @@ export function Layout() { // Vendor on vendor routes: show only TENANTS. On tenant routes: show tenant portal too (for debugging). const showTenantPortal = isTenantAdmin && (!isVendor || !onVendorRoute); - // Determine current org slug for server dashboard link - const currentOrg = organizations.find((o) => o.id === currentOrgId); - const serverDashboardHref = currentOrg?.slug ? `/t/${currentOrg.slug}/` : '#'; - // Build breadcrumbs from path const segments = location.pathname.replace(/^\//, '').split('/').filter(Boolean); const breadcrumb = segments.map((seg) => { @@ -173,15 +169,6 @@ export function Layout() { )} - {showTenantPortal && ( - - } - label="Open Server Dashboard" - onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')} - /> - - )} );