Liquid: Display block times and amounts correctly.

This commit is contained in:
softsimon
2020-03-25 21:29:40 +07:00
parent 43585be6a9
commit 350a06a096
8 changed files with 33 additions and 6 deletions

View File

@@ -2,5 +2,10 @@
<span>{{ conversions.USD * (satoshis / 100000000) | currency:'USD':'symbol':'1.2-2' }}</span>
</ng-container>
<ng-template #viewFiatVin>
{{ satoshis / 100000000 | number : '1.8-8' }} BTC
<ng-template [ngIf]="network === 'liquid' && !satoshis" [ngIfElse]="default">
Confidential
</ng-template>
<ng-template #default>
{{ satoshis / 100000000 | number : '1.8-8' }} BTC
</ng-template>
</ng-template>

View File

@@ -1,6 +1,7 @@
import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core';
import { StateService } from '../../services/state.service';
import { Observable } from 'rxjs';
import { environment } from '../../../environments/environment';
@Component({
selector: 'app-amount',
@@ -11,6 +12,7 @@ import { Observable } from 'rxjs';
export class AmountComponent implements OnInit {
conversions$: Observable<any>;
viewFiat$: Observable<boolean>;
network = environment.network;
@Input() satoshis: number;