Hide balance unless insufficient for max cost

This commit is contained in:
Mononaut 2023-08-31 00:15:09 +09:00
parent ed12e30517
commit d6044331e1
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -228,20 +228,22 @@
</ng-container> </ng-container>
<!-- USER BALANCE --> <!-- USER BALANCE -->
<tr class="group-first group-last" style="border-top: 1px dashed grey"> <ng-container *ngIf="estimate.userBalance < maxCost">
<td class="item"> <tr class="group-first group-last" style="border-top: 1px dashed grey">
Available balance <td class="item">
</td> Available balance
<td class="amt"> </td>
{{ estimate.userBalance | number }} <td class="amt">
</td> {{ estimate.userBalance | number }}
<td class="units"> </td>
<span class="symbol" i18n="shared.sats|sats">sats</span> <td class="units">
<span class="fiat"> <span class="symbol" i18n="shared.sats|sats">sats</span>
<app-fiat [value]="estimate.userBalance" [colorClass]="estimate.userBalance < maxCost ? 'red-color' : 'green-color'"></app-fiat> <span class="fiat">
</span> <app-fiat [value]="estimate.userBalance" [colorClass]="estimate.userBalance < maxCost ? 'red-color' : 'green-color'"></app-fiat>
</td> </span>
</tr> </td>
</tr>
</ng-container>
</tbody> </tbody>
</table> </table>
</div> </div>