file api working. Migration script missing
This commit is contained in:
parent
a8f882472d
commit
1f6596a5ad
9 changed files with 180 additions and 50 deletions
|
|
@ -434,18 +434,21 @@ angular
|
|||
|
||||
if (!profileService.profile && toState.needProfile) {
|
||||
|
||||
// Give us time to open / create the profile
|
||||
event.preventDefault();
|
||||
|
||||
// Try to open local profile
|
||||
profileService.loadAndBindProfile(function(err) {
|
||||
if (err) {
|
||||
if (err.message.match('NOPROFILE')) {
|
||||
$log.debug('No profile... redirecting');
|
||||
$state.transitionTo('splash');
|
||||
event.preventDefault();
|
||||
} else {
|
||||
throw new Error(err); // TODO
|
||||
}
|
||||
} else {
|
||||
// Profile was loaded
|
||||
console.log('Profile loaded ... resuming transition');
|
||||
$state.transitionTo('walletHome');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue