fix(dashboard): hide the tenant picker on cluster-scoped admin pages

The Breadcrumb subtitle is a tenant picker, and it rendered on every
route including the cluster-wide /admin Capacity views, where picking
a tenant changes nothing. Reuse the inAdmin flag that already selects
the sidebar sections to drop the subtitle there.

Fixes #3106

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
Myasnikov Daniil authored and Aleksei Sviridkin committed 2026-10-07 05:03:18 +03:00
1 parent fa3db545b9
commit d17e3d18ec
1 file changed
+1 -1
@@ -44,7 +44,7 @@ function Shell({ username }: { username?: string }) {
<AppShell
tabs={tabs}
sections={sections}
subtitle={<Breadcrumb />}
subtitle={inAdmin ? undefined : <Breadcrumb />}
onSearchClick={toggle}
version={config.version || import.meta.env.VITE_APP_VERSION}
logoSvg={config.logoSvg}