mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 01:04:28 +01:00
Display correct BTC unit depending on network.
This commit is contained in:
parent
9980414969
commit
c7a09ffbfc
@ -15,32 +15,18 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<table class="table table-borderless table-striped">
|
<table class="table table-borderless table-striped">
|
||||||
<tbody *ngIf="network !== 'liquid'">
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Total received</td>
|
<td>Total received</td>
|
||||||
<td>{{ receieved / 100000000 | number: '1.8-8' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC</td>
|
<td><app-amount [satoshis]="receieved"></app-amount></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Total sent</td>
|
<td>Total sent</td>
|
||||||
<td>{{ sent / 100000000 | number: '1.8-8' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC</td>
|
<td><app-amount [satoshis]="sent"></app-amount></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Balance</td>
|
<td>Balance</td>
|
||||||
<td>{{ (receieved - sent) / 100000000 | number: '1.8-8' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
|
<td><app-amount [satoshis]="receieved - sent"></app-amount> (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
<tbody *ngIf="network === 'liquid'">
|
|
||||||
<tr>
|
|
||||||
<td>Total received</td>
|
|
||||||
<td>Confidential</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Total sent</td>
|
|
||||||
<td>Confidential</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Balance</td>
|
|
||||||
<td>Confidential</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Total fees</td>
|
<td>Total fees</td>
|
||||||
<td>{{ mempoolBlock.totalFees / 100000000 | number : '1.2-2' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC (<app-fiat [value]="mempoolBlock.totalFees" digitsInfo="1.0-0"></app-fiat>)</td>
|
<td><app-amount [satoshis]="mempoolBlock.totalFees" [digitsInfo]="'1.2-2'"></app-amount> (<app-fiat [value]="mempoolBlock.totalFees" digitsInfo="1.0-0"></app-fiat>)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Transactions</td>
|
<td>Transactions</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user