From cc88f034c7b9129ff12d6948934804401ed71225 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Tue, 13 May 2025 17:45:02 +0200 Subject: [PATCH] fix sharedreport date_format provide --- resources/js/Pages/SharedReport.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/js/Pages/SharedReport.vue b/resources/js/Pages/SharedReport.vue index 3a12bb1f..c1f0b722 100644 --- a/resources/js/Pages/SharedReport.vue +++ b/resources/js/Pages/SharedReport.vue @@ -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 ) }}