Skip to content
Snippets Groups Projects
Commit 9f7258c4 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Wallets: resetting the view when logout

[fix] Wallets: do not display balance if wallet item not loaded
parent f4c418c6
No related branches found
No related tags found
No related merge requests found
Pipeline #4903 failed
......@@ -620,8 +620,10 @@ function WalletSelectModalController($scope, $q, $timeout, UIUtils, filterTransl
// Clean controller data
$scope.resetData = function() {
console.debug("[wallets] Cleaning wallet list");
$scope.wallets = null;
$scope.loading = true;
$scope.entered = false;
$scope.formData.balance = undefined;
$scope.formData.updatingWalletId = undefined;
};
......
......@@ -27,7 +27,7 @@
<cs-extension-point name="item-wallet"></cs-extension-point>
<span class="badge" ng-if="formData.showBalance"
<span class="badge" ng-if=":rebind:formData.showBalance && walletData.loaded"
ng-class=":rebind:{'badge-assertive': (walletData.balance <= 0), 'badge-balanced': (walletData.balance > 0) }">
<ion-spinner class="ion-spinner-small" ng-if="formData.updatingWalletId==wallet.id" icon="android"></ion-spinner>
<span ng-bind-html=":rebind:walletData.balance|formatAmount:{useRelative: formData.useRelative, currency: currency}"></span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment