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

View File

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