Add explicit call to updateAddressList

This commit is contained in:
Ivan Socolsky 2014-09-04 11:22:08 -03:00
parent a0c7d2cb66
commit cf3703e8ab
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ angular.module('copayApp.controllers').controller('AddressesController',
$scope.loading = false;
var w = $rootScope.wallet;
controllerUtils.updateAddressList();
$scope.newAddr = function() {
$scope.loading = true;
w.generateAddress(null, function() {

View File

@ -37,6 +37,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
$scope.refresh = function() {
var w = $rootScope.wallet;
w.sendWalletReady();
controllerUtils.updateAddressList();
if ($rootScope.addrInfos.length > 0) {
controllerUtils.updateBalance(function() {
$rootScope.$digest();