rm focusedClient

This commit is contained in:
Matias Alejo Garcia 2016-08-22 14:42:43 -03:00
commit d4f39abc9a
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
9 changed files with 102 additions and 147 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.services').factory('configService', function(storageService, lodash, $log, $timeout) {
angular.module('copayApp.services').factory('configService', function(storageService, lodash, $log, $timeout, $rootScope) {
var root = {};
var defaultConfig = {
@ -115,6 +115,10 @@ angular.module('copayApp.services').factory('configService', function(storageSer
configCache.pushNotifications = defaultConfig.pushNotifications;
}
configCache.bwsFor = configCache.bwsFor || {};
configCache.colorFor = configCache.colorFor || {};
configCache.aliasFor = configCache.aliasFor || {};
} else {
configCache = lodash.clone(defaultConfig);
};
@ -158,6 +162,8 @@ angular.module('copayApp.services').factory('configService', function(storageSer
lodash.merge(config, oldOpts, newOpts);
configCache = config;
$rootScope.$emit('Local/SettingsUpdated');
storageService.storeConfig(JSON.stringify(config), cb);
});
};