From 41c11a2c17987ea06b4caab2f72120dd3f4d968b Mon Sep 17 00:00:00 2001 From: JDonadio Date: Wed, 1 Feb 2017 15:41:20 -0300 Subject: [PATCH 1/2] balance button hide --- src/js/controllers/walletDetails.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index a137077b3..33b19b37c 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -271,7 +271,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun function refreshAmountSection(scrollPos) { $scope.showBalanceButton = false; if ($scope.wallet.status) { - $scope.showBalanceButton = ($scope.wallet.status.totalBalanceSat != $scope.wallet.status.spendableAmount); + $scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount); } if (!$scope.amountIsCollapsible) { var t = ($scope.showBalanceButton ? 15 : 45); @@ -352,7 +352,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun listeners = [ $rootScope.$on('bwsEvent', function(e, walletId) { - if (walletId == $scope.wallet.id && e.type!='NewAddress') + if (walletId == $scope.wallet.id && e.type != 'NewAddress') $scope.updateAll(); }), $rootScope.$on('Local/TxAction', function(e, walletId) { From f2c39cd1156fc4f5be3cdd4d68a86694b20dda8c Mon Sep 17 00:00:00 2001 From: JDonadio Date: Mon, 6 Feb 2017 10:15:12 -0300 Subject: [PATCH 2/2] fix propertie name --- src/js/controllers/walletDetails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index 33b19b37c..1c1af142e 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -270,7 +270,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun function refreshAmountSection(scrollPos) { $scope.showBalanceButton = false; - if ($scope.wallet.status) { + if ($scope.status) { $scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount); } if (!$scope.amountIsCollapsible) {