]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Monitoring: Fix for the infinite loading bar action 37161/head
authornizamial09 <nia@redhat.com>
Tue, 15 Sep 2020 13:01:52 +0000 (18:31 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 17 Sep 2020 07:27:55 +0000 (12:57 +0530)
Only seen in nautilus
Intended to fix the unusual behaviour in the All Alerts tab where the loading bar progressess continously until one of the alerts is selected.

To reproduce:
Navigate to cluster -> Monitoring -> All Alerts tab. You can see the progress bar at the bottom of the table.

Fixes: https://tracker.ceph.com/issues/47435
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.html

index 1c2aeb9ea740ca22bf3b08553552ca7862a7d2de..e5d311f59f2c247cfd6490f60d3deef2312ec64d 100644 (file)
@@ -3,6 +3,7 @@
           (updateSelection)="selectionUpdated($event)"
           [selectionType]="'single'"></cd-table>
 
-<cd-table-key-value [data]="selectedRule"
+<cd-table-key-value *ngIf="selectedRule"
+                    [data]="selectedRule"
                     [renderObjects]="true"
                     [hideKeys]="hideKeys"></cd-table-key-value>