Hide confirmations badge if height unknown
This commit is contained in:
		
							parent
							
								
									965270dc7f
								
							
						
					
					
						commit
						6a16759e20
					
				| @ -19,6 +19,7 @@ | ||||
| 
 | ||||
|       <div class="container-buttons"> | ||||
|         <app-confirmations | ||||
|           *ngIf="tx" | ||||
|           [chainTip]="latestBlock?.height" | ||||
|           [height]="tx?.status?.block_height" | ||||
|           [replaced]="replaced" | ||||
|  | ||||
| @ -5,12 +5,15 @@ | ||||
|     <ng-template #confirmationPlural let-i i18n="shared.confirmation-count.plural|Transaction plural confirmation count">{{ i }} confirmations</ng-template> | ||||
|   </button> | ||||
| </ng-template> | ||||
| <ng-template [ngIf]="!confirmations && height != null"> | ||||
|   <button type="button" class="btn btn-sm btn-success {{buttonClass}}" i18n="transaction.confirmed|Transaction confirmed state">Confirmed</button> | ||||
| </ng-template> | ||||
| <ng-template [ngIf]="!hideUnconfirmed && !confirmations && replaced"> | ||||
|   <button type="button" class="btn btn-sm btn-warning {{buttonClass}}" i18n="transaction.replaced|Transaction replaced state">Replaced</button> | ||||
| </ng-template> | ||||
| <ng-template [ngIf]="!hideUnconfirmed && !confirmations && !replaced && removed"> | ||||
|   <button type="button" class="btn btn-sm btn-warning {{buttonClass}}" i18n="transaction.audit.removed|Transaction removed state">Removed</button> | ||||
| </ng-template> | ||||
| <ng-template [ngIf]="!hideUnconfirmed && !confirmations && !replaced && !removed"> | ||||
| <ng-template [ngIf]="!hideUnconfirmed && chainTip != null && !confirmations && !replaced && !removed"> | ||||
|   <button type="button" class="btn btn-sm btn-danger {{buttonClass}}" i18n="transaction.unconfirmed|Transaction unconfirmed state">Unconfirmed</button> | ||||
| </ng-template> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user