Skip to content

Commit d17e3d1

Browse files
myasnikovdaniillexfrei
authored andcommitted
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 <[email protected]>
1 parent fa3db54 commit d17e3d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/system/dashboard/images/console/apps/console/src

‎packages/system/dashboard/images/console/apps/console/src/App.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Shell({ username }: { username?: string }) {
4444
<AppShell
4545
tabs={tabs}
4646
sections={sections}
47-
subtitle={<Breadcrumb />}
47+
subtitle={inAdmin ? undefined : <Breadcrumb />}
4848
onSearchClick={toggle}
4949
version={config.version || import.meta.env.VITE_APP_VERSION}
5050
logoSvg={config.logoSvg}

0 commit comments

Comments
 (0)