refactor
This commit is contained in:
parent
3901d2d72e
commit
0ce69590b8
1 changed files with 11 additions and 12 deletions
|
|
@ -154,9 +154,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.disclaimerAccepted = true;
|
||||
profileService.setDisclaimerAccepted(function(err) {
|
||||
if (err) $log.error(err);
|
||||
if (lodash.isEmpty(profileService.focusedClient)) {
|
||||
$rootScope.$emit('Local/NoWallets');
|
||||
} else go.walletHome();
|
||||
go.walletHome();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -1359,16 +1357,17 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
});
|
||||
|
||||
$rootScope.$on('Local/NoWallets', function(event) {
|
||||
profileService.isDisclaimerAccepted(function(v) {
|
||||
if (v) {
|
||||
$timeout(function() {
|
||||
self.hasProfile = true;
|
||||
self.noFocusedWallet = true;
|
||||
self.isComplete = null;
|
||||
self.walletName = null;
|
||||
|
||||
$timeout(function() {
|
||||
self.hasProfile = true;
|
||||
self.noFocusedWallet = true;
|
||||
self.isComplete = null;
|
||||
self.walletName = null;
|
||||
profileService.isDisclaimerAccepted(function(v) {
|
||||
if (v) {
|
||||
go.path('import');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue