From: Alfonso Martínez Date: Tue, 3 Aug 2021 13:20:54 +0000 (+0200) Subject: mgr/dashboard: Cluster > Hosts > Performance Counters: do not show context bar. X-Git-Tag: v17.1.0~1206^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=73acb9b60d23e79bdcdd03437b0a813487420e33;p=ceph.git mgr/dashboard: Cluster > Hosts > Performance Counters: do not show context bar. Do not show the context bar (Object Gateway selection). Fixes: https://tracker.ceph.com/issues/52022 Signed-off-by: Alfonso Martínez --- 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(