several improvements
This commit is contained in:
parent
319417552a
commit
e928ca2b81
3 changed files with 14 additions and 8 deletions
|
|
@ -26,7 +26,12 @@ angular.module('copay.header').controller('HeaderController',
|
|||
|
||||
$rootScope.$watch('wallet', function(wallet) {
|
||||
if (wallet) {
|
||||
controllerUtils.setSocketHandlers();
|
||||
controllerUtils.setSocketHandlers();
|
||||
$rootScope.wallet.getBalance(function(balance) {
|
||||
$rootScope.$apply(function() {
|
||||
$rootScope.totalBalance = balance;
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue