mempool/frontend/src/app/components/amount/amount.component.html

13 lines
608 B
HTML
Raw Normal View History

<ng-container *ngIf="(viewFiat$ | async) && (conversions$ | async) as conversions; else viewFiatVin">
<span>{{ conversions.USD * (satoshis / 100000000) | currency:'USD':'symbol':'1.2-2' }}</span>
</ng-container>
<ng-template #viewFiatVin>
2020-05-02 07:36:35 +02:00
<ng-template [ngIf]="network === 'liquid' && satoshis === undefined" [ngIfElse]="default">
Confidential
</ng-template>
<ng-template #default>
{{ satoshis / 100000000 | number : digitsInfo }} <ng-template [ngIf]="network === 'liquid'">L-BTC</ng-template>
<ng-template [ngIf]="network === 'testnet'">tBTC</ng-template>
</ng-template>
</ng-template>