Skip to content

Commit 9f7258c

Browse files
committed
[fix] Wallets: resetting the view when logout
[fix] Wallets: do not display balance if wallet item not loaded
1 parent f4c418c commit 9f7258c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

www/js/controllers/wallets-controllers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,10 @@ function WalletSelectModalController($scope, $q, $timeout, UIUtils, filterTransl
620620

621621
// Clean controller data
622622
$scope.resetData = function() {
623+
console.debug("[wallets] Cleaning wallet list");
623624
$scope.wallets = null;
624625
$scope.loading = true;
626+
$scope.entered = false;
625627
$scope.formData.balance = undefined;
626628
$scope.formData.updatingWalletId = undefined;
627629
};

www/templates/wallet/list/item_wallet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h4 class="gray">
2727

2828
<cs-extension-point name="item-wallet"></cs-extension-point>
2929

30-
<span class="badge" ng-if="formData.showBalance"
30+
<span class="badge" ng-if=":rebind:formData.showBalance && walletData.loaded"
3131
ng-class=":rebind:{'badge-assertive': (walletData.balance <= 0), 'badge-balanced': (walletData.balance > 0) }">
3232
<ion-spinner class="ion-spinner-small" ng-if="formData.updatingWalletId==wallet.id" icon="android"></ion-spinner>
3333
<span ng-bind-html=":rebind:walletData.balance|formatAmount:{useRelative: formData.useRelative, currency: currency}"></span>

0 commit comments

Comments
 (0)