]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: hide multi-cluster context switcher
authorAashish Sharma <Aashish.Sharma1@ibm.com>
Wed, 12 Nov 2025 13:18:43 +0000 (18:48 +0530)
committerAashish Sharma <Aashish.Sharma1@ibm.com>
Thu, 13 Nov 2025 07:02:05 +0000 (12:32 +0530)
We need to hide multi-cluster context-switcher from the downstream 9.0
clusters in case a cluster with an existing multi-cluster setup upgrades
to this version.

Resolves: rhbz#2406182

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html

index 61f0400a9794340c21377fb9d519e73731e74e3e..0f6a4614bc10405890a6474c48904f75242e8ce6 100644 (file)
@@ -16,7 +16,7 @@
     <!-- CLUSTER SWITCHER TEMPLATE -->
     <!-- ************************* -->
     <cds-header-navigation class="cluster-switcher"
-                           *ngIf="clustersMap?.size > 1 && environment.build === 'ibm'">
+                           *ngIf="clustersMap?.size > 1 && !['ibm', 'redhat'].includes(environment.build)">
       <cds-header-menu [title]="currentClusterName"
                        data-testid="selected-cluster">
         <ng-container *ngFor="let cluster of clustersMap | keyvalue; trackBy:trackByFn ">