mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #1650 from isocolsky/fixes
fetch txs & compute balance immediately after switching wallets
This commit is contained in:
commit
b1b4b0c017
|
@ -67,7 +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.updateTxsAndBalance(w);
|
||||
controllerUtils.updateTxs({
|
||||
wallet: w,
|
||||
pending: true
|
||||
});
|
||||
controllerUtils.updateBalance(w, function() {
|
||||
$rootScope.$digest();
|
||||
})
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue