Liquid: Add address column in recent pegs table

This commit is contained in:
natsee 2024-01-30 14:25:08 +01:00
parent e69ba7e884
commit f4de3a44e0
No known key found for this signature in database
GPG key ID: 233CF3150A89BED8
3 changed files with 29 additions and 4 deletions

View file

@ -58,11 +58,23 @@
{{ peg.amount > 0 ? '+' : '-' }}<app-amount [satoshis]="peg.amount" [noFiat]="true" [forceBtc]="true"></app-amount>
</td>
<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">
<app-truncate [text]="peg.bitcointxid + ':' + peg.bitcoinindex" [lastChars]="6"></app-truncate>
</a>
</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 class="timestamp text-right">
&lrm;{{ peg.blocktime * 1000 | date:'yyyy-MM-dd HH:mm' }}
@ -96,6 +108,9 @@
<td class="output text-left">
<span class="skeleton-loader" style="max-width: 300px"></span>
</td>
<td class="address text-left">
<span class="skeleton-loader" style="max-width: 140px"></span>
</td>
<td class="timestamp text-right">
<span class="skeleton-loader" style="max-width: 140px"></span>
</td>
@ -120,6 +135,6 @@
<br>
<ng-template #noPeginMessage>
<span class="text-muted">BTC Redeem in progress...</span>
<ng-template #noRedeem>
<span class="text-muted">-</span>
</ng-template>

View file

@ -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 {
width: 18%;
@media (max-width: 650px) {

View file

@ -94,7 +94,6 @@ export class RecentPegsListComponent implements OnInit {
filter(auditUpdated => auditUpdated === true),
throttleTime(40000),
switchMap(_ => this.apiService.federationUtxos$()),
tap(_ => this.isLoading = false),
share()
);
@ -134,6 +133,7 @@ export class RecentPegsListComponent implements OnInit {
return b.blocktime - a.blocktime;
});
}),
tap(_ => this.isLoading = false),
share()
);
}