|
|
@ -24,14 +24,22 @@ import { filter } from 'rxjs/operators'; |
|
|
styleUrls: ['./loader-bar.component.scss'], |
|
|
styleUrls: ['./loader-bar.component.scss'], |
|
|
}) |
|
|
}) |
|
|
export class LoaderBarComponent implements OnDestroy, OnInit { |
|
|
export class LoaderBarComponent implements OnDestroy, OnInit { |
|
|
|
|
|
protected _isLoading: boolean; |
|
|
|
|
|
|
|
|
@Input() |
|
|
@Input() |
|
|
containerClass = 'abp-loader-bar'; |
|
|
set isLoading(value: boolean) { |
|
|
|
|
|
this._isLoading = value; |
|
|
|
|
|
this.cdRef.detectChanges(); |
|
|
|
|
|
} |
|
|
|
|
|
get isLoading(): boolean { |
|
|
|
|
|
return this._isLoading; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Input() |
|
|
@Input() |
|
|
color = '#77b6ff'; |
|
|
containerClass = 'abp-loader-bar'; |
|
|
|
|
|
|
|
|
@Input() |
|
|
@Input() |
|
|
isLoading: boolean; |
|
|
color = '#77b6ff'; |
|
|
|
|
|
|
|
|
progressLevel = 0; |
|
|
progressLevel = 0; |
|
|
|
|
|
|
|
|
@ -122,7 +130,7 @@ export class LoaderBarComponent implements OnDestroy, OnInit { |
|
|
if (this.interval) this.interval.unsubscribe(); |
|
|
if (this.interval) this.interval.unsubscribe(); |
|
|
|
|
|
|
|
|
this.progressLevel = 100; |
|
|
this.progressLevel = 100; |
|
|
setTimeout(() => (this.isLoading = false), 0); |
|
|
this.isLoading = false; |
|
|
|
|
|
|
|
|
if (this.timer && !this.timer.closed) return; |
|
|
if (this.timer && !this.timer.closed) return; |
|
|
|
|
|
|
|
|
|