Display transaction fees even if they are zero.

This commit is contained in:
softsimon 2020-07-22 13:41:50 +07:00
parent a4c49d42af
commit 6b3e84255a
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 16 additions and 14 deletions

View File

@ -63,20 +63,18 @@
<div class="col-sm"> <div class="col-sm">
<table class="table table-borderless table-striped"> <table class="table table-borderless table-striped">
<tbody> <tbody>
<ng-template [ngIf]="tx.fee"> <tr>
<tr> <td class="td-width">Fee</td>
<td class="td-width">Fee</td> <td>{{ tx.fee | number }} sat (<app-fiat [value]="tx.fee"></app-fiat>)</td>
<td>{{ tx.fee | number }} sat (<app-fiat [value]="tx.fee"></app-fiat>)</td> </tr>
</tr> <tr>
<tr> <td>Fee per vByte</td>
<td>Fee per vByte</td> <td>
<td> {{ tx.fee / (tx.weight / 4) | number : '1.1-1' }} sat/vB
{{ tx.fee / (tx.weight / 4) | number : '1.1-1' }} sat/vB &nbsp;
&nbsp; <app-tx-fee-rating *ngIf="tx.fee" [tx]="tx"></app-tx-fee-rating>
<app-tx-fee-rating [tx]="tx"></app-tx-fee-rating> </td>
</td> </tr>
</tr>
</ng-template>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -0,0 +1,4 @@
.badge {
position: relative;
top: -1px;
}