refreshing txs when switching wallets
This commit is contained in:
parent
076d4c20cf
commit
69153757fb
1 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
// });
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue