mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
improve design for time entries index export
This commit is contained in:
committed by
Constantin Graf
parent
4281736a6d
commit
e308ca78b1
@@ -198,7 +198,9 @@ async function downloadExport(format: ExportFormat) {
|
||||
'Export successful',
|
||||
'Export failed'
|
||||
);
|
||||
window.open(response.download_url, '_blank')?.focus();
|
||||
if (response?.download_url) {
|
||||
window.open(response.download_url as string, '_blank')?.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
const { getNameForReportingRowEntry, emptyPlaceholder } = useReportingStore();
|
||||
|
||||
@@ -233,7 +233,9 @@ async function downloadExport(format: ExportFormat) {
|
||||
'Export successful',
|
||||
'Export failed'
|
||||
);
|
||||
window.open(response.download_url, '_self')?.focus();
|
||||
if (response?.download_url) {
|
||||
window.open(response.download_url as string, '_blank')?.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -252,6 +254,7 @@ async function downloadExport(format: ExportFormat) {
|
||||
<ReportingExportButton
|
||||
:download="downloadExport"></ReportingExportButton>
|
||||
</MainContainer>
|
||||
|
||||
<div class="py-2.5 w-full border-b border-default-background-separator">
|
||||
<MainContainer
|
||||
class="sm:flex space-y-4 sm:space-y-0 justify-between">
|
||||
|
||||
Reference in New Issue
Block a user