Liquid: Display BTC as L-BTC.

This commit is contained in:
softsimon
2020-03-25 21:55:18 +07:00
parent 350a06a096
commit 81839cb55f
7 changed files with 18 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
</tr>
<tr>
<td>Total fees</td>
<td>{{ mempoolBlock.totalFees / 100000000 | number : '1.2-2' }} BTC (<app-fiat [value]="mempoolBlock.totalFees" digitsInfo="1.0-0"></app-fiat>)</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>
</tr>
<tr>
<td>Transactions</td>

View File

@@ -5,6 +5,7 @@ import { switchMap, map, tap } from 'rxjs/operators';
import { MempoolBlock } from 'src/app/interfaces/websocket.interface';
import { Observable } from 'rxjs';
import { SeoService } from 'src/app/services/seo.service';
import { environment } from 'src/environments/environment';
@Component({
selector: 'app-mempool-block',
@@ -12,6 +13,7 @@ import { SeoService } from 'src/app/services/seo.service';
styleUrls: ['./mempool-block.component.scss']
})
export class MempoolBlockComponent implements OnInit, OnDestroy {
network = environment.network;
mempoolBlockIndex: number;
mempoolBlock$: Observable<MempoolBlock>;