Improvement - 172 - Make default price display in fiat
This commit is contained in:
parent
463eed2583
commit
12f1c2e28a
9 changed files with 118 additions and 2 deletions
|
|
@ -69,6 +69,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
unitCode: 'btc',
|
||||
alternativeName: 'US Dollar',
|
||||
alternativeIsoCode: 'USD',
|
||||
priceDisplay: 'fiat', // 'fiat' || 'crypto'
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -181,6 +182,11 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
configCache.wallet.settings.unitCode = defaultConfig.wallet.settings.unitCode;
|
||||
}
|
||||
|
||||
// If display is not configure, take the default value
|
||||
if (!configCache.wallet.settings.priceDisplay) {
|
||||
configCache.wallet.settings.display = defaultConfig.wallet.settings.priceDisplay;
|
||||
}
|
||||
|
||||
// Convert tarascash wallet to new style cash wallet
|
||||
if (configCache.bwsbcc && configCache.bwsbcc.url && configCache.bwsbcc.url.indexOf('bwsbcc') >= 0) {
|
||||
configCache.bwsbcc = defaultConfig.bwscash.url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue