save remote for new clients

This commit is contained in:
Matias Alejo Garcia 2015-06-29 22:40:39 -03:00
commit 7f65822790
4 changed files with 28 additions and 14 deletions

View file

@ -128,13 +128,16 @@ angular.module('copayApp.services')
root.setWalletClients();
storageService.getFocusedWalletId(function(err, focusedWalletId) {
if (err) return cb(err);
root._setFocus(focusedWalletId, cb);
root._setFocus(focusedWalletId, function() {
$rootScope.$emit('Local/ProfileBound');
return cb();
});
});
});
};
root.loadAndBindProfile = function(cb) {
storageService.getCopayDisclaimer(function(err, val) {
storageService.getCopayDisclaimerFlag(function(err, val) {
if (!val) {
return cb(new Error('NONAGREEDDISCLAIMER: Non agreed disclaimer'));
} else {