fix: Expression has changed after it was checked error in loader-bar

resolves #4652
pull/4656/head
mehmet-erim 5 years ago
parent 5e7f1be471
commit 02dbdc7b15

@ -31,7 +31,7 @@ export class LoaderBarComponent implements OnDestroy, OnInit {
color = '#77b6ff';
@Input()
isLoading = false;
isLoading: boolean;
progressLevel = 0;
@ -122,7 +122,7 @@ export class LoaderBarComponent implements OnDestroy, OnInit {
if (this.interval) this.interval.unsubscribe();
this.progressLevel = 100;
this.isLoading = false;
setTimeout(() => (this.isLoading = false), 0);
if (this.timer && !this.timer.closed) return;

Loading…
Cancel
Save