set default currency display mode to symbol
This commit is contained in:
@@ -45,12 +45,7 @@ export default function ({i18n}, value, currencyCode) {
|
||||
|
||||
const currencyDisplayMode = settings.getCurrencyDisplayMode();
|
||||
|
||||
if (currencyDisplayMode === 'code') {
|
||||
return `${value} ${currencyCode}`;
|
||||
} else if (currencyDisplayMode === 'name') {
|
||||
const currencyName = i18n.t(`currency.${currencyCode}`);
|
||||
return `${value} ${currencyName}`;
|
||||
} else if (currencyDisplayMode === 'symbol') {
|
||||
if (currencyDisplayMode === 'symbol') {
|
||||
const currencyInfo = currency.all[currencyCode];
|
||||
let currencySymbol = currency.defaultCurrencySymbol;
|
||||
|
||||
@@ -64,6 +59,11 @@ export default function ({i18n}, value, currencyCode) {
|
||||
amount: value,
|
||||
symbol: currencySymbol
|
||||
});
|
||||
} else if (currencyDisplayMode === 'code') {
|
||||
return `${value} ${currencyCode}`;
|
||||
} else if (currencyDisplayMode === 'name') {
|
||||
const currencyName = i18n.t(`currency.${currencyCode}`);
|
||||
return `${value} ${currencyName}`;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ const defaultSettings = {
|
||||
applicationLockWebAuthn: false,
|
||||
autoUpdateExchangeRatesData: true,
|
||||
thousandsSeparator: true,
|
||||
currencyDisplayMode: 'code', // or 'none' or 'name' or 'symbol'
|
||||
currencyDisplayMode: 'symbol', // or 'none' or 'code' or 'name'
|
||||
showAccountBalance: true,
|
||||
animate: false,
|
||||
autoDarkMode: true
|
||||
|
||||
@@ -49,9 +49,9 @@
|
||||
smart-select :smart-select-params="{ openIn: 'sheet', closeOnSelect: true, sheetCloseLinkText: $t('Done') }">
|
||||
<select v-model="currencyDisplayMode">
|
||||
<option value="none">{{ $t('None') }}</option>
|
||||
<option value="symbol">{{ $t('Currency Symbol') }}</option>
|
||||
<option value="code">{{ $t('Currency Code') }}</option>
|
||||
<option value="name">{{ $t('Currency Name') }}</option>
|
||||
<option value="symbol">{{ $t('Currency Symbol') }}</option>
|
||||
</select>
|
||||
</f7-list-item>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user