]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Added conditional rendering for danger status
authorbryanmontalvan <bmontalv@redhat.com>
Fri, 5 Aug 2022 17:45:35 +0000 (13:45 -0400)
committerNizamudeen A <nia@redhat.com>
Wed, 14 Sep 2022 15:11:25 +0000 (20:41 +0530)
This commit adds the condition for when the cluster health is in danger

Signed-off-by: bryanmontalvan <bmontalv@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html

index 0b72e8c275a0e1568ec5c970437c4a9ddb6f05e5..116e6165cd0d34864b43bbbfe6d5919e4996261f 100644 (file)
              i18n-title
              class="col-sm-6 px-3">
       <div class="d-flex">
-        <i *ngIf="healthData.health?.status != 'HEALTH_OK'"
-           class="pl-2 fa fa-exclamation-triangle text-warning"></i>
         <i *ngIf="healthData.health?.status == 'HEALTH_OK'"
            class="pl-2 fa fa-check-circle text-success"></i>
+        <i *ngIf="healthData.health?.status == 'HEALTH_WARN'"
+           class="pl-2 fa fa-exclamation-triangle text-warning"></i>
+        <i *ngIf="healthData.health?.status == 'HEALTH_ERR'"
+           class="pl-2 fa fa-exclamation-triangle text-danger"></i>
         <p class="pl-2 pr-5">Cluster</p>
         <i class="fa fa-exclamation-triangle"></i>
         <p class="pl-2">Data Health</p>