]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Cluster > Hosts > Performance Counters: do not show context bar.
authorAlfonso Martínez <almartin@redhat.com>
Tue, 3 Aug 2021 13:20:54 +0000 (15:20 +0200)
committerAlfonso Martínez <almartin@redhat.com>
Tue, 3 Aug 2021 13:20:54 +0000 (15:20 +0200)
Do not show the context bar (Object Gateway selection).

Fixes: https://tracker.ceph.com/issues/52022
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.ts

index 3aea56868082f655cee409daf128d857df5e5581..8de611307a71fc35538b09b1eb21b695cddfa5b4 100644 (file)
@@ -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(