file api working. Migration script missing
This commit is contained in:
parent
a8f882472d
commit
1f6596a5ad
9 changed files with 180 additions and 50 deletions
|
|
@ -111,6 +111,8 @@ angular.module('copayApp.services')
|
|||
|
||||
|
||||
root.bindProfile = function(profile, cb) {
|
||||
|
||||
console.log('[profileService.js.114] Bind profile', profile); //TODO
|
||||
root.profile = profile;
|
||||
|
||||
configService.get(function(err) {
|
||||
|
|
@ -127,12 +129,14 @@ angular.module('copayApp.services')
|
|||
|
||||
root.loadAndBindProfile = function(cb) {
|
||||
storageService.getProfile(function(err, profile) {
|
||||
console.log('[profileService.js.129:err:]',err); //TODO
|
||||
if (err) {
|
||||
notification.error('CRITICAL ERROR: ' + err);
|
||||
$rootScope.$emit('Local/DeviceError', err);
|
||||
return cb(err);
|
||||
}
|
||||
if (!profile) return cb(new Error('NOPROFILE: No profile'));
|
||||
|
||||
console.log('[profileService.js.135] BIND'); //TODO
|
||||
return root.bindProfile(profile, cb);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue