Fix acceleration list observable subscription logic
This commit is contained in:
		
							parent
							
								
									7f784944af
								
							
						
					
					
						commit
						fd7f340854
					
				| @ -4,7 +4,7 @@ | |||||||
| 
 | 
 | ||||||
|   <div class="clearfix"></div> |   <div class="clearfix"></div> | ||||||
| 
 | 
 | ||||||
|   <div class="acceleration-list"> |   <div class="acceleration-list" *ngIf="{ accelerations: accelerationList$ | async } as state"> | ||||||
|     <table *ngIf="nonEmptyAccelerations; else noData" class="table table-borderless table-fixed"> |     <table *ngIf="nonEmptyAccelerations; else noData" class="table table-borderless table-fixed"> | ||||||
|       <thead> |       <thead> | ||||||
|         <th class="txid text-left" i18n="dashboard.latest-transactions.txid">TXID</th> |         <th class="txid text-left" i18n="dashboard.latest-transactions.txid">TXID</th> | ||||||
| @ -21,8 +21,8 @@ | |||||||
|           <th class="date text-right" i18n="accelerator.requested" *ngIf="!this.widget">Requested</th> |           <th class="date text-right" i18n="accelerator.requested" *ngIf="!this.widget">Requested</th> | ||||||
|         </ng-container> |         </ng-container> | ||||||
|       </thead> |       </thead> | ||||||
|       <tbody *ngIf="accelerationList$ | async as accelerations; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''"> |       <tbody *ngIf="state.accelerations && nonEmptyAccelerations; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''"> | ||||||
|         <tr *ngFor="let acceleration of accelerations; let i= index;"> |         <tr *ngFor="let acceleration of state.accelerations; let i= index;"> | ||||||
|           <td class="txid text-left"> |           <td class="txid text-left"> | ||||||
|             <a [routerLink]="['/tx' | relativeUrl, acceleration.txid]"> |             <a [routerLink]="['/tx' | relativeUrl, acceleration.txid]"> | ||||||
|               <app-truncate [text]="acceleration.txid" [lastChars]="5"></app-truncate> |               <app-truncate [text]="acceleration.txid" [lastChars]="5"></app-truncate> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user