Browse Source

refactor(theme-shared): loader-bar

pull/1810/head
mehmet-erim 7 years ago
parent
commit
ef9a6cbf38
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.scss
  2. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts

2
npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.scss

@ -12,7 +12,7 @@
} }
.abp-progress { .abp-progress {
height: 2px; height: 3px;
left: 0; left: 0;
position: fixed; position: fixed;
top: 0; top: 0;

2
npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts

@ -97,7 +97,7 @@ export class LoaderBarComponent implements OnDestroy {
this.interval.unsubscribe(); this.interval.unsubscribe();
this.progressLevel = 100; this.progressLevel = 100;
this.isLoading = false; this.isLoading = false;
if (this.timer) this.timer.unsubscribe(); if (this.timer && !this.timer.closed) return;
this.timer = timer(820).subscribe(() => { this.timer = timer(820).subscribe(() => {
this.progressLevel = 0; this.progressLevel = 0;

Loading…
Cancel
Save