Fixes:
* Reload address list when click on refresh * Angular error when do not have any address and click on refresh
This commit is contained in:
parent
194ddc8079
commit
61dfec7a0d
4 changed files with 17 additions and 14 deletions
|
|
@ -63,9 +63,11 @@ angular.module('copay.header').controller('HeaderController',
|
|||
$scope.refresh = function() {
|
||||
var w = $rootScope.wallet;
|
||||
w.connectToAll();
|
||||
controllerUtils.updateBalance(function() {
|
||||
$rootScope.$digest();
|
||||
});
|
||||
if ($rootScope.addrInfos.length > 0 ) {
|
||||
controllerUtils.updateBalance(function() {
|
||||
$rootScope.$digest();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$scope.clearFlashMessage = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue