Merge pull request #5557 from JDonadio/bug/delete-txp

Balance button hide
This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-06 11:35:25 -03:00 committed by GitHub
commit 7606653ea2

View file

@ -270,8 +270,8 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
function refreshAmountSection(scrollPos) { function refreshAmountSection(scrollPos) {
$scope.showBalanceButton = false; $scope.showBalanceButton = false;
if ($scope.wallet.status) { if ($scope.status) {
$scope.showBalanceButton = ($scope.wallet.status.totalBalanceSat != $scope.wallet.status.spendableAmount); $scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount);
} }
if (!$scope.amountIsCollapsible) { if (!$scope.amountIsCollapsible) {
var t = ($scope.showBalanceButton ? 15 : 45); var t = ($scope.showBalanceButton ? 15 : 45);
@ -352,7 +352,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
listeners = [ listeners = [
$rootScope.$on('bwsEvent', function(e, walletId) { $rootScope.$on('bwsEvent', function(e, walletId) {
if (walletId == $scope.wallet.id && e.type!='NewAddress') if (walletId == $scope.wallet.id && e.type != 'NewAddress')
$scope.updateAll(); $scope.updateAll();
}), }),
$rootScope.$on('Local/TxAction', function(e, walletId) { $rootScope.$on('Local/TxAction', function(e, walletId) {