Display confidential instead of nothing for confidential assets.

fixes #110
This commit is contained in:
softsimon 2020-11-22 16:30:36 +07:00
parent 01689c8433
commit 6bc6966019
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -18,15 +18,15 @@
<tbody>
<tr>
<td>Total received</td>
<td><app-amount [satoshis]="receieved" [noFiat]="true"></app-amount></td>
<td *ngIf="address.chain_stats.funded_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="receieved" [noFiat]="true"></app-amount></td>
</tr>
<tr>
<td>Total sent</td>
<td><app-amount [satoshis]="sent" [noFiat]="true"></app-amount></td>
<td *ngIf="address.chain_stats.spent_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="sent" [noFiat]="true"></app-amount></td>
</tr>
<tr>
<td>Balance</td>
<td><app-amount [satoshis]="receieved - sent" [noFiat]="true"></app-amount> (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
<td *ngIf="address.chain_stats.funded_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="receieved - sent" [noFiat]="true"></app-amount> (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
</tr>
</tbody>
</table>
@ -106,4 +106,8 @@
</div>
<br>
<br>
<ng-template #confidentialTd>
<td>Confidential</td>
</ng-template>