Fix confirmations button positioning.

This commit is contained in:
Miguel Medeiros 2021-09-28 21:09:36 -03:00
parent 18e0a17d26
commit c72c287b27
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB

View File

@ -10,7 +10,7 @@
</div> </div>
<div> <div>
<div class="title float-left"> <div class="title">
<h1 i18n="shared.transaction">Transaction</h1> <h1 i18n="shared.transaction">Transaction</h1>
</div> </div>
@ -22,7 +22,7 @@
<app-clipboard [text]="txId"></app-clipboard> <app-clipboard [text]="txId"></app-clipboard>
</div> </div>
<div class="container-buttons float-right"> <div class="container-buttons">
<ng-template [ngIf]="tx?.status?.confirmed"> <ng-template [ngIf]="tx?.status?.confirmed">
<button *ngIf="latestBlock" type="button" class="btn btn-sm btn-success"> <button *ngIf="latestBlock" type="button" class="btn btn-sm btn-success">
<ng-container *ngTemplateOutlet="latestBlock.height - tx.status.block_height + 1 == 1 ? confirmationSingular : confirmationPlural; context: {$implicit: latestBlock.height - tx.status.block_height + 1}"></ng-container> <ng-container *ngTemplateOutlet="latestBlock.height - tx.status.block_height + 1 == 1 ? confirmationSingular : confirmationPlural; context: {$implicit: latestBlock.height - tx.status.block_height + 1}"></ng-container>