rm focusedClient
This commit is contained in:
parent
a702b6e77e
commit
d4f39abc9a
9 changed files with 102 additions and 147 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue