Show fiat value of totalRecieved for addresses.

Rename fee to fee burnt.
This commit is contained in:
softsimon 2020-07-14 23:49:57 +07:00
parent ca0cf23d66
commit 3008f99668
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
6 changed files with 7 additions and 8 deletions

1
backend/.gitignore vendored
View File

@ -43,4 +43,3 @@ testem.log
Thumbs.db Thumbs.db
cache.json cache.json
blocks.json

View File

@ -26,7 +26,7 @@
</tr> </tr>
<tr> <tr>
<td>Final balance</td> <td>Final balance</td>
<td>{{ (totalReceived - totalSent) / 100 | number: '1.2-2' }} BSQ</td> <td>{{ (totalReceived - totalSent) / 100 | number: '1.2-2' }} BSQ (<app-bsq-amount [bsq]="totalReceived - totalSent" [forceFiat]="true" [green]="true"></app-bsq-amount>)</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -1,4 +1,4 @@
import { Component, ChangeDetectionStrategy, OnInit, Input } from '@angular/core'; import { Component, ChangeDetectionStrategy, Input, OnChanges } from '@angular/core';
import { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types'; import { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types';
@Component({ @Component({
@ -7,7 +7,7 @@ import { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types';
styleUrls: ['./bisq-icon.component.scss'], styleUrls: ['./bisq-icon.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class BisqIconComponent implements OnInit { export class BisqIconComponent implements OnChanges {
@Input() txType: string; @Input() txType: string;
iconProp: [IconPrefix, IconName] = ['fas', 'leaf']; iconProp: [IconPrefix, IconName] = ['fas', 'leaf'];
@ -15,7 +15,7 @@ export class BisqIconComponent implements OnInit {
constructor() { } constructor() { }
ngOnInit() { ngOnChanges() {
switch (this.txType) { switch (this.txType) {
case 'UNVERIFIED': case 'UNVERIFIED':
this.iconProp[1] = 'question'; this.iconProp[1] = 'question';

View File

@ -42,7 +42,7 @@
</tr> </tr>
<tr> <tr>
<td>Market cap</td> <td>Market cap</td>
<td><app-fiat [value]="price * (stats.minted - stats.burnt) / 100 "></app-fiat></td> <td><app-fiat [value]="price * (stats.minted - stats.burnt) / 100"></app-fiat></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -34,7 +34,7 @@
<table class="table table-borderless table-striped"> <table class="table table-borderless table-striped">
<tbody> <tbody>
<tr> <tr>
<td class="td-width">Fee burnt</td> <td class="td-width">Burnt</td>
<td> <td>
{{ bisqTx.burntFee / 100 | number: '1.2-2' }} BSQ (<app-bsq-amount [bsq]="bisqTx.burntFee" [forceFiat]="true" [green]="true"></app-bsq-amount>) {{ bisqTx.burntFee / 100 | number: '1.2-2' }} BSQ (<app-bsq-amount [bsq]="bisqTx.burntFee" [forceFiat]="true" [green]="true"></app-bsq-amount>)
</tr> </tr>

View File

@ -59,7 +59,7 @@
<div> <div>
<div class="float-left mt-2-5" *ngIf="showConfirmations && tx.burntFee"> <div class="float-left mt-2-5" *ngIf="showConfirmations && tx.burntFee">
Fee: {{ tx.burntFee / 100 | number: '1.2-2' }} BSQ (<app-bsq-amount [bsq]="tx.burntFee" [forceFiat]="true" [green]="true"></app-bsq-amount>) Burnt: {{ tx.burntFee / 100 | number: '1.2-2' }} BSQ (<app-bsq-amount [bsq]="tx.burntFee" [forceFiat]="true" [green]="true"></app-bsq-amount>)
</div> </div>
<div class="float-right"> <div class="float-right">