fetch txs & compute balance immediately after switching wallets
This commit is contained in:
parent
9ae146059d
commit
29cbce6f7f
1 changed files with 7 additions and 1 deletions
|
|
@ -67,7 +67,13 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
|
||||||
if (controllerUtils.isFocusedWallet(wid)) return;
|
if (controllerUtils.isFocusedWallet(wid)) return;
|
||||||
var w = $rootScope.iden.getWalletById(wid);
|
var w = $rootScope.iden.getWalletById(wid);
|
||||||
$scope.wallets.push(w);
|
$scope.wallets.push(w);
|
||||||
controllerUtils.updateTxsAndBalance(w);
|
controllerUtils.updateTxs({
|
||||||
|
wallet: w,
|
||||||
|
pending: true
|
||||||
|
});
|
||||||
|
controllerUtils.updateBalance(w, function() {
|
||||||
|
$rootScope.$digest();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue