mirror of
https://github.com/mempool/mempool.git
synced 2025-03-15 20:30:33 +01:00
Fix loading indicator when changing page
This commit is contained in:
parent
9d3044efae
commit
a1f1b09c55
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ export class AccelerationsListComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
this.accelerationList$ = this.pageSubject.pipe(
|
this.accelerationList$ = this.pageSubject.pipe(
|
||||||
switchMap((page) => {
|
switchMap((page) => {
|
||||||
|
this.isLoading = true;
|
||||||
const accelerationObservable$ = this.accelerations$ || (this.pending ? this.stateService.liveAccelerations$ : this.servicesApiService.getAccelerationHistoryObserveResponse$({ page: page }));
|
const accelerationObservable$ = this.accelerations$ || (this.pending ? this.stateService.liveAccelerations$ : this.servicesApiService.getAccelerationHistoryObserveResponse$({ page: page }));
|
||||||
if (!this.accelerations$ && this.pending) {
|
if (!this.accelerations$ && this.pending) {
|
||||||
this.websocketService.ensureTrackAccelerations();
|
this.websocketService.ensureTrackAccelerations();
|
||||||
|
|
Loading…
Add table
Reference in a new issue