refreshing txs when switching wallets

This commit is contained in:
Ivan Socolsky 2014-10-31 12:17:28 -03:00
commit 69153757fb

View file

@ -67,12 +67,13 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
if (controllerUtils.isFocusedWallet(wid)) return;
var w = $rootScope.iden.getWalletById(wid);
$scope.wallets.push(w);
controllerUtils.updateBalance(w, function(err, res) {
if (err) return;
setTimeout(function() {
$scope.$digest();
}, 1);
});
controllerUtils.updateTxsAndBalance(w);
// controllerUtils.updateBalance(w, function(err, res) {
// if (err) return;
// setTimeout(function() {
// $scope.$digest();
// }, 1);
// });
});
};
});