Bugfix: Latestblock height didn't propagate in the template

Renaming Contributors to About
This commit is contained in:
softsimon
2020-06-21 14:55:16 +07:00
parent c9cc660e54
commit 7e9ba6b983
4 changed files with 9 additions and 8 deletions

View File

@@ -127,7 +127,7 @@
</div>
<div class="float-right">
<span *ngIf="showConfirmations && latestBlock">
<span *ngIf="showConfirmations && latestBlock$ | async as latestBlock">
<button *ngIf="tx.status.confirmed; else unconfirmedButton" type="button" class="btn btn-sm btn-success mt-2">{{ 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-2">Unconfirmed</button>