several improvements

This commit is contained in:
Mario Colque 2014-04-21 11:32:51 -03:00
commit e928ca2b81
3 changed files with 14 additions and 8 deletions

View file

@ -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;
});
});
}
});