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

This commit is contained in:
Alex Moreno 2025-04-03 15:07:33 +02:00
parent 8593f1d760
commit 0e535663b1
2 changed files with 2 additions and 1 deletions

View File

@ -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)
}} }}

View File

@ -76,6 +76,7 @@ export function useSession() {
lang: '', lang: '',
darkMode: null, darkMode: null,
foreignCurrency: true, foreignCurrency: true,
currencyCode: 'EUR', //FIXME: use config
}); });
stopRenewer(); stopRenewer();