Added fiat balance to address and made fiat balance into a component.

This commit is contained in:
softsimon
2020-03-02 17:29:00 +07:00
parent 29953e12de
commit bab4761c24
11 changed files with 60 additions and 15 deletions

View File

@@ -23,7 +23,7 @@
</tr>
<tr>
<td>Balance</td>
<td>{{ (receieved - sent) / 100000000 | number: '1.2-8' }} BTC</td>
<td>{{ (receieved - sent) / 100000000 | number: '1.2-8' }} BTC (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
</tr>
</tbody>
</table>

View File

@@ -49,6 +49,7 @@ export class AddressComponent implements OnInit, OnDestroy {
this.error = undefined;
this.isLoadingAddress = true;
this.loadedConfirmedTxCount = 0;
this.address = null;
this.isLoadingTransactions = true;
this.transactions = null;
document.body.scrollTo(0, 0);