mirror of https://github.com/BTCPrivate/copay.git
If there is an error, reset global variable "starting"
This commit is contained in:
parent
4a6c258f68
commit
fcdaddd358
|
@ -40,9 +40,10 @@ angular.module('copayApp.services')
|
|||
} else {
|
||||
scope.error = 'Unknown error when connecting Insight Server';
|
||||
}
|
||||
$rootScope.starting = false;
|
||||
$timeout(function() {
|
||||
$rootScope.$digest()
|
||||
}, 1);
|
||||
}, 1);
|
||||
return;
|
||||
}
|
||||
var walletOptions = {
|
||||
|
@ -57,6 +58,10 @@ angular.module('copayApp.services')
|
|||
if (err || !wallet) {
|
||||
copay.logger.debug(err);
|
||||
scope.error = 'Could not create default wallet';
|
||||
$rootScope.starting = false;
|
||||
$timeout(function() {
|
||||
$rootScope.$digest()
|
||||
}, 1);
|
||||
return;
|
||||
}
|
||||
controllerUtils.bindProfile(scope, iden, wallet.id);
|
||||
|
@ -82,9 +87,10 @@ angular.module('copayApp.services')
|
|||
} else {
|
||||
scope.error = 'Unknown error';
|
||||
}
|
||||
$rootScope.starting = false;
|
||||
$timeout(function() {
|
||||
$rootScope.$digest()
|
||||
}, 1);
|
||||
}, 1);
|
||||
} else {
|
||||
var firstWallet = iden.getLastFocusedWallet();
|
||||
controllerUtils.bindProfile(scope, iden, firstWallet);
|
||||
|
|
Loading…
Reference in New Issue