Skip to content

Commit

Permalink
mgr/dashboard: Loading indicator only if fechData provided
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Marques <[email protected]>
  • Loading branch information
ricardoasmarques committed Apr 11, 2018
1 parent b418836 commit ccace85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O
// 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;
if (this.fetchData.observers.length > 0) {
this.loadingIndicator = true;
}
this.ngZone.runOutsideAngular(() => {
this.subscriber = Observable.timer(0, this.autoReload).subscribe(x => {
this.ngZone.run(() => {
Expand Down

0 comments on commit ccace85

Please sign in to comment.