wallet
wallet copied to clipboard
Put locked funds somewhere is VISIBLE
That was visible in older versions afaik.
personally i have this on my sidebar-mobile.html:
<div class="oh text-bold">
<span ng-if="item.isComplete() && item.balanceInfo.updatingBalance"><i class="icon-usd icon-rotate spinner"></i></span>
<div ng-if="item.isComplete() && !item.balanceInfo.updatingBalance" data-options="disable_for_touch:true">
<b class="m5r size-12">{{item.balanceInfo.totalBalance || 0}} {{item.settings.unitName}}</b>
<span class="alt-currency gray size-10">{{item.balanceInfo.totalBalanceAlternative}} {{item.balanceInfo.alternativeIsoCode}}</span>
</div>
<div ng-if="item.isComplete() && !item.balanceInfo.updatingBalance && item.balanceInfo.lockedBalance > 0" data-options="disable_for_touch:true">
<i class="fi-lock"></i><b translate class="m5r m5l size-10 locked">Locked: {{item.balanceInfo.lockedBalance || 0}} {{item.settings.unitName}}</b>
</div>
<span translate ng-if="!item.isComplete()">Waiting for Copayers...</span>
</div>
and on the send.html i have it modified to show avail and locked balance too:
<div ng-show="!showAlternative">
<label for="amount">
<span translate>Amount</span>
<small translate> Available*: {{$root.wallet.balanceInfo.availableBalance || 0}} {{$root.wallet.settings.unitName}}</small>
</label>
<div ng-show="showAlternative">
<label for="alternative"><span translate>Amount in</span> {{ alternativeName }}
<small translate> Available*: {{$root.wallet.balanceInfo.availableBalanceAlternative}} {{$root.wallet.balanceInfo.alternativeIsoCode}}</small>
</label>
<div class="locked m10b" ng-show="$root.wallet.balanceInfo.lockedBalance && !walletSelection">
<i class="fi-lock"></i>
<span>
{{'Locked Balance:'|translate}}
</span>
<span ng-if="$root.wallet.balanceInfo.updatingBalance"><i class="icon-usd icon-rotate spinner"></i></span>
<span ng-if="$root.wallet && !$root.wallet.balanceInfo.updatingBalance">
<b>{{$root.wallet.balanceInfo.lockedBalance}} {{$root.wallet.settings.unitName}} </b>
- {{$root.wallet.balanceInfo.lockedBalanceAlternative}} {{$root.wallet.balanceInfo.alternativeIsoCode}}
</span>
</div>
wheres available balance is defined in balanceservice.js as
if (rateService.isAvailable()) {
...
var availableBalanceAlternative = rateService.toFiat(safeBalanceSat, w.settings.alternativeIsoCode);
...
r.availableBalanceAlternative = $filter('noFractionNumber')(availableBalanceAlternative, 2);
};
The reason i added that for myself was
- i had some locked tx proposal and dust and wondered why i couldnt send funds, took me a while to find out they are locked
and 2) It´s a bit annoying to be on the Send page and you dont even know how much funds you have to send etc.
PS: From the above avail balance stuff you should normally also substract the tx fees to get the real avail balance.
I Agree @thoatbk . I will Work on that and I will study the best ux. Thanks for your feedback :+1: