From a1f1b09c55f762490cf848328c97cf2308a06639 Mon Sep 17 00:00:00 2001 From: natsoni Date: Wed, 26 Jun 2024 11:13:32 +0900 Subject: [PATCH] Fix loading indicator when changing page --- .../accelerations-list/accelerations-list.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts index 237b14317..e25c87bb8 100644 --- a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts +++ b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts @@ -44,6 +44,7 @@ export class AccelerationsListComponent implements OnInit, OnDestroy { this.accelerationList$ = this.pageSubject.pipe( switchMap((page) => { + this.isLoading = true; const accelerationObservable$ = this.accelerations$ || (this.pending ? this.stateService.liveAccelerations$ : this.servicesApiService.getAccelerationHistoryObserveResponse$({ page: page })); if (!this.accelerations$ && this.pending) { this.websocketService.ensureTrackAccelerations();