mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
fix sharedreport date_format provide
This commit is contained in:
@@ -57,7 +57,12 @@ const reportNumberFormat = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const reportCurrencyFormat = 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(() => {
|
const reportCurrencySymbol = computed(() => {
|
||||||
@@ -71,6 +76,7 @@ provide(
|
|||||||
'interval_format': reportIntervalFormat.value,
|
'interval_format': reportIntervalFormat.value,
|
||||||
'currency_format': reportCurrencyFormat.value,
|
'currency_format': reportCurrencyFormat.value,
|
||||||
'currency_symbol': reportCurrencySymbol.value,
|
'currency_symbol': reportCurrencySymbol.value,
|
||||||
|
'date_format': reportDateFormat.value,
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -252,7 +258,7 @@ onMounted(async () => {
|
|||||||
aggregatedTableTimeEntries.cost,
|
aggregatedTableTimeEntries.cost,
|
||||||
reportCurrency,
|
reportCurrency,
|
||||||
reportCurrencyFormat,
|
reportCurrencyFormat,
|
||||||
reportCurrencySymbol,
|
reportCurrencySymbol
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user