fix sharedreport date_format provide

This commit is contained in:
Gregor Vostrak
2025-05-13 17:45:02 +02:00
parent 9620c89545
commit cc88f034c7
+8 -2
View File
@@ -57,7 +57,12 @@ const reportNumberFormat = computed(() => {
});
const reportCurrencyFormat = computed(() => {
return (sharedReportResponseData.value?.currency_format ?? 'symbol-before') as CurrencyFormat;
return (sharedReportResponseData.value?.currency_format ??
'symbol-before') as CurrencyFormat;
});
const reportDateFormat = computed(() => {
return sharedReportResponseData.value?.date_format;
});
const reportCurrencySymbol = computed(() => {
@@ -71,6 +76,7 @@ provide(
'interval_format': reportIntervalFormat.value,
'currency_format': reportCurrencyFormat.value,
'currency_symbol': reportCurrencySymbol.value,
'date_format': reportDateFormat.value,
}))
);
@@ -252,7 +258,7 @@ onMounted(async () => {
aggregatedTableTimeEntries.cost,
reportCurrency,
reportCurrencyFormat,
reportCurrencySymbol,
reportCurrencySymbol
)
}}
</div>