Liquid: Add address column in recent pegs table
This commit is contained in:
		
							parent
							
								
									e69ba7e884
								
							
						
					
					
						commit
						f4de3a44e0
					
				| @ -58,11 +58,23 @@ | |||||||
|                 {{ peg.amount > 0 ? '+' : '-' }}<app-amount [satoshis]="peg.amount" [noFiat]="true" [forceBtc]="true"></app-amount> |                 {{ peg.amount > 0 ? '+' : '-' }}<app-amount [satoshis]="peg.amount" [noFiat]="true" [forceBtc]="true"></app-amount> | ||||||
|               </td> |               </td> | ||||||
|               <td class="output text-left"> |               <td class="output text-left"> | ||||||
|                 <ng-container *ngIf="peg.bitcointxid; else noPeginMessage"> |                 <ng-container *ngIf="peg.bitcointxid; else redeemInProgress"> | ||||||
|                   <a href="{{ env.MEMPOOL_WEBSITE_URL + '/tx/' + peg.bitcointxid + ':' + peg.bitcoinindex }}" target="_blank" style="color:#b86d12"> |                   <a href="{{ env.MEMPOOL_WEBSITE_URL + '/tx/' + peg.bitcointxid + ':' + peg.bitcoinindex }}" target="_blank" style="color:#b86d12"> | ||||||
|                     <app-truncate [text]="peg.bitcointxid + ':' + peg.bitcoinindex" [lastChars]="6"></app-truncate> |                     <app-truncate [text]="peg.bitcointxid + ':' + peg.bitcoinindex" [lastChars]="6"></app-truncate> | ||||||
|                   </a> |                   </a> | ||||||
|                 </ng-container> |                 </ng-container> | ||||||
|  |                 <ng-template #redeemInProgress> | ||||||
|  |                   <ng-container *ngIf="peg.bitcoinaddress; else noRedeem"> | ||||||
|  |                     <span class="text-muted">BTC Redemption in progress...</span> | ||||||
|  |                   </ng-container> | ||||||
|  |                 </ng-template> | ||||||
|  |               </td> | ||||||
|  |               <td class="address text-left"> | ||||||
|  |                 <ng-container *ngIf="peg.bitcoinaddress; else noRedeem"> | ||||||
|  |                   <a href="{{ env.MEMPOOL_WEBSITE_URL + '/address/' + peg.bitcoinaddress }}" target="_blank" style="color:#b86d12"> | ||||||
|  |                     <app-truncate [text]="peg.bitcoinaddress" [lastChars]="6"></app-truncate> | ||||||
|  |                   </a> | ||||||
|  |                 </ng-container> | ||||||
|               </td> |               </td> | ||||||
|               <td class="timestamp text-right"> |               <td class="timestamp text-right"> | ||||||
|                 ‎{{ peg.blocktime * 1000 | date:'yyyy-MM-dd HH:mm' }} |                 ‎{{ peg.blocktime * 1000 | date:'yyyy-MM-dd HH:mm' }} | ||||||
| @ -96,6 +108,9 @@ | |||||||
|               <td class="output text-left"> |               <td class="output text-left"> | ||||||
|                 <span class="skeleton-loader" style="max-width: 300px"></span> |                 <span class="skeleton-loader" style="max-width: 300px"></span> | ||||||
|               </td> |               </td> | ||||||
|  |               <td class="address text-left"> | ||||||
|  |                 <span class="skeleton-loader" style="max-width: 140px"></span> | ||||||
|  |               </td> | ||||||
|               <td class="timestamp text-right"> |               <td class="timestamp text-right"> | ||||||
|                 <span class="skeleton-loader" style="max-width: 140px"></span> |                 <span class="skeleton-loader" style="max-width: 140px"></span> | ||||||
|               </td> |               </td> | ||||||
| @ -120,6 +135,6 @@ | |||||||
| 
 | 
 | ||||||
| <br> | <br> | ||||||
| 
 | 
 | ||||||
| <ng-template #noPeginMessage> | <ng-template #noRedeem> | ||||||
|   <span class="text-muted">BTC Redeem in progress...</span> |   <span class="text-muted">-</span> | ||||||
| </ng-template> | </ng-template> | ||||||
| @ -67,6 +67,16 @@ tr, td, th { | |||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .address { | ||||||
|  |   overflow: hidden; | ||||||
|  |   text-overflow: ellipsis; | ||||||
|  |   white-space: nowrap; | ||||||
|  |   max-width: 160px; | ||||||
|  |   @media (max-width: 527px) { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .timestamp { | .timestamp { | ||||||
|   width: 18%; |   width: 18%; | ||||||
|   @media (max-width: 650px) { |   @media (max-width: 650px) { | ||||||
|  | |||||||
| @ -94,7 +94,6 @@ export class RecentPegsListComponent implements OnInit { | |||||||
|         filter(auditUpdated => auditUpdated === true), |         filter(auditUpdated => auditUpdated === true), | ||||||
|         throttleTime(40000), |         throttleTime(40000), | ||||||
|         switchMap(_ => this.apiService.federationUtxos$()), |         switchMap(_ => this.apiService.federationUtxos$()), | ||||||
|         tap(_ => this.isLoading = false), |  | ||||||
|         share() |         share() | ||||||
|       ); |       ); | ||||||
| 
 | 
 | ||||||
| @ -134,6 +133,7 @@ export class RecentPegsListComponent implements OnInit { | |||||||
|           return b.blocktime - a.blocktime; |           return b.blocktime - a.blocktime; | ||||||
|         }); |         }); | ||||||
|       }), |       }), | ||||||
|  |       tap(_ => this.isLoading = false), | ||||||
|       share() |       share() | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user