From bac0f8d7767bdb56b5cb44ad7e87d854c8c9b89c Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Mon, 16 Jan 2017 13:59:56 +0100 Subject: [PATCH] Balance incorrecte after sending TX - fix #248 --- www/js/controllers/wallet-controllers.js | 2 ++ www/templates/wallet/view_wallet.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/js/controllers/wallet-controllers.js b/www/js/controllers/wallet-controllers.js index 981f96f15..83ca0b842 100644 --- a/www/js/controllers/wallet-controllers.js +++ b/www/js/controllers/wallet-controllers.js @@ -86,6 +86,8 @@ function WalletController($scope, $rootScope, $q, $ionicPopup, $timeout, $state, // Update view $scope.updateView = function() { + $scope.$broadcast('$$rebind::' + 'balance'); // force rebind balance + $scope.onSettingsChanged(); // Set Motion $timeout(function() { diff --git a/www/templates/wallet/view_wallet.html b/www/templates/wallet/view_wallet.html index b619c1ecb..fd7a83459 100644 --- a/www/templates/wallet/view_wallet.html +++ b/www/templates/wallet/view_wallet.html @@ -15,7 +15,7 @@ </button> </ion-nav-buttons> - <ion-content scroll="true" bind-notifier="{ rebind:settings.useRelative }"> + <ion-content scroll="true" bind-notifier="{ rebind:settings.useRelative, balance:walletData.balance }"> <div class="positive-900-bg hero" id="wallet-header" ng-class="{'hero-qrcode-active': toggleQRCode}"> -- GitLab