file api working. Migration script missing

This commit is contained in:
Matias Alejo Garcia 2015-04-24 16:39:12 -03:00
commit 1f6596a5ad
9 changed files with 180 additions and 50 deletions

View file

@ -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);
});
};