From d730d5021ea136a472797d7dd30f48e6c634f19b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alfonso=20Mart=C3=ADnez?= Date: Tue, 3 Aug 2021 15:20:54 +0200 Subject: [PATCH] mgr/dashboard: Cluster > Hosts > Performance Counters: do not show context bar. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Do not show the context bar (Object Gateway selection). Fixes: https://tracker.ceph.com/issues/52022 Signed-off-by: Alfonso Martínez (cherry picked from commit 73acb9b60d23e79bdcdd03437b0a813487420e33) --- .../frontend/src/app/core/context/context.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.ts index 3aea56868082f..8de611307a71f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.ts @@ -42,7 +42,7 @@ export class ContextComponent implements OnInit, OnDestroy { this.subs.add( this.router.events .pipe(filter((event: Event) => event instanceof NavigationEnd)) - .subscribe(() => (this.isRgwRoute = this.router.url.includes(this.rgwUrlPrefix))) + .subscribe(() => (this.isRgwRoute = this.router.url.startsWith(this.rgwUrlPrefix))) ); // Set daemon list polling only when in RGW route: this.subs.add( -- 2.39.5