Show error when selecting a not ready wallet
This commit is contained in:
parent
fef82e8697
commit
36692f4269
2 changed files with 7 additions and 4 deletions
|
|
@ -132,9 +132,6 @@ angular.module('copayApp.controllers').controller('addressbookController', funct
|
||||||
else {
|
else {
|
||||||
$scope.gettingAddress = true;
|
$scope.gettingAddress = true;
|
||||||
$scope.selectedWalletName = walletName;
|
$scope.selectedWalletName = walletName;
|
||||||
$timeout(function() {
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
|
|
||||||
addressService.getAddress(walletId, false, function(err, addr) {
|
addressService.getAddress(walletId, false, function(err, addr) {
|
||||||
$scope.gettingAddress = false;
|
$scope.gettingAddress = false;
|
||||||
|
|
@ -148,6 +145,9 @@ angular.module('copayApp.controllers').controller('addressbookController', funct
|
||||||
$scope.cancel();
|
$scope.cancel();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('walletsController', function($scope, bwcError, profileService) {
|
angular.module('copayApp.controllers').controller('walletsController', function($scope, $timeout, bwcError, profileService) {
|
||||||
|
|
||||||
$scope.selectWallet = function(walletId) {
|
$scope.selectWallet = function(walletId) {
|
||||||
|
|
||||||
|
|
@ -10,6 +10,9 @@ angular.module('copayApp.controllers').controller('walletsController', function(
|
||||||
profileService.isReady(client, function(err) {
|
profileService.isReady(client, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.errorSelectedWallet[walletId] = bwcError.msg(err);
|
$scope.errorSelectedWallet[walletId] = bwcError.msg(err);
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue