Fix loading indicator when changing page

This commit is contained in:
natsoni 2024-06-26 11:13:32 +09:00
parent 9d3044efae
commit a1f1b09c55
No known key found for this signature in database
GPG key ID: C65917583181743B

View file

@ -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();