Skip to content

Commit c96ebe7

Browse files
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 5ee0094 commit c96ebe7

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
@@ -46,7 +46,7 @@ function Shell({ config, username }: ShellProps) {
4646
<AppShell
4747
tabs={tabs}
4848
sections={sections}
49-
subtitle={<Breadcrumb />}
49+
subtitle={inAdmin ? undefined : <Breadcrumb />}
5050
onSearchClick={toggle}
5151
version={config.version || import.meta.env.VITE_APP_VERSION}
5252
logoSvg={config.logoSvg}

0 commit comments

Comments
 (0)