fix: refs #7984 update currency display logic and set default currency code
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
8593f1d760
commit
0e535663b1
|
@ -72,7 +72,7 @@ function getForeignFieldComputed() {
|
||||||
<span :title="toCurrencyLabel">
|
<span :title="toCurrencyLabel">
|
||||||
<template v-if="currency && (localValue || localValue === 0)">
|
<template v-if="currency && (localValue || localValue === 0)">
|
||||||
{{
|
{{
|
||||||
foreignValue && user.foreignCurrency
|
foreignValue && user.foreignCurrency && currency != user.currencyCode
|
||||||
? toCurrencyLabel
|
? toCurrencyLabel
|
||||||
: toCurrency(localValue)
|
: toCurrency(localValue)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -76,6 +76,7 @@ export function useSession() {
|
||||||
lang: '',
|
lang: '',
|
||||||
darkMode: null,
|
darkMode: null,
|
||||||
foreignCurrency: true,
|
foreignCurrency: true,
|
||||||
|
currencyCode: 'EUR', //FIXME: use config
|
||||||
});
|
});
|
||||||
|
|
||||||
stopRenewer();
|
stopRenewer();
|
||||||
|
|
Loading…
Reference in New Issue