Fix loading indicator when changing page
This commit is contained in:
		
							parent
							
								
									9d3044efae
								
							
						
					
					
						commit
						a1f1b09c55
					
				| @ -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(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user