Confirmed address transactions fix. QR Code fix.

This commit is contained in:
softsimon committed 2020-02-26 21:11:43 +07:00
1 parent f9c03f2a98
commit 37166e230d
4 files changed
+13 -8

No files matched your search

@@ -71,7 +71,7 @@
<tr>
<td class="text-right" colspan="4">
<span *ngIf="showConfirmations && latestBlock$ | async as latestBlock">
<button *ngIf="tx.status.confirmed; else unconfirmedButton" type="button" class="btn btn-sm btn-success mt-3">{{ latestBlock.height - tx.status.block_height + 1 }} confirmations</button>
<button *ngIf="tx.status.confirmed; else unconfirmedButton" type="button" class="btn btn-sm btn-success mt-3">{{ latestBlock.height - tx.status.block_height + 1 }} confirmation<ng-container *ngIf="latestBlock.height - tx.status.block_height + 1 > 1">s</ng-container></button>
<ng-template #unconfirmedButton>
<button type="button" class="btn btn-sm btn-danger mt-3">Unconfirmed</button>
</ng-template>
@@ -63,6 +63,6 @@ export class TransactionsListComponent implements OnInit, OnChanges {
}
trackByFn(index: number, tx: Transaction) {
return tx.txid;
return tx.txid + tx.status.confirmed;
}
}