mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-13 08:05:19 +09:00
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:
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}
|
||||
|
||||
Reference in new issue
Block a user