add switch to enable/disable notifications on global setings

This commit is contained in:
Javier 2015-12-23 14:17:24 -03:00 committed by Gabriel Bazán
commit b3c59e2cb0
4 changed files with 30 additions and 3 deletions

View file

@ -41,6 +41,10 @@ angular.module('copayApp.services').factory('configService', function(storageSer
rates: {
url: 'https://insight.bitpay.com:443/api/rates',
},
notifications: {
enabled: true
},
};
var configCache = null;
@ -70,7 +74,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
configCache.wallet.settings.unitCode = defaultConfig.wallet.settings.unitCode;
}
if (!configCache.glidera) {
configCache.glidera = defaultConfig.glidera;
configCache.glidera = defaultConfig.glidera;
}
} else {