]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: Display loading indicator in datatables during first load 20744/head
authorVolker Theile <vtheile@suse.com>
Tue, 6 Mar 2018 11:38:20 +0000 (12:38 +0100)
committerVolker Theile <vtheile@suse.com>
Tue, 6 Mar 2018 11:38:20 +0000 (12:38 +0100)
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/datatable/table/table.component.ts

index 0df9d419f41cd1bfc00930a642f26eefef13b5bc..0559606a6edda8cdaab73b8477e46b0a56fdf60d 100644 (file)
@@ -125,6 +125,9 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O
       ];
     }
     if (this.autoReload) { // Also if nothing is bound to fetchData nothing will be triggered
+      // Force showing the loading indicator because it has been set to False in
+      // useData() when this method was triggered by ngOnChanges().
+      this.loadingIndicator = true;
       this.subscriber = Observable.timer(0, this.autoReload).subscribe(x => {
         return this.reloadData();
       });