Add explicit call to updateAddressList
This commit is contained in:
parent
a0c7d2cb66
commit
cf3703e8ab
2 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ angular.module('copayApp.controllers').controller('AddressesController',
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
|
|
||||||
|
controllerUtils.updateAddressList();
|
||||||
|
|
||||||
$scope.newAddr = function() {
|
$scope.newAddr = function() {
|
||||||
$scope.loading = true;
|
$scope.loading = true;
|
||||||
w.generateAddress(null, function() {
|
w.generateAddress(null, function() {
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
|
||||||
$scope.refresh = function() {
|
$scope.refresh = function() {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
w.sendWalletReady();
|
w.sendWalletReady();
|
||||||
|
controllerUtils.updateAddressList();
|
||||||
if ($rootScope.addrInfos.length > 0) {
|
if ($rootScope.addrInfos.length > 0) {
|
||||||
controllerUtils.updateBalance(function() {
|
controllerUtils.updateBalance(function() {
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue