Enable export for organizations (#8346)

Signed-off-by: Anna Khismatullina <anna.khismatullina@gmail.com>
This commit is contained in:
Anna Khismatullina
2025-03-26 13:05:09 +07:00
committed by GitHub
parent 31de65a60c
commit e08b0392fa
5 changed files with 44 additions and 2 deletions
@@ -53,9 +53,12 @@
kind: 'error',
message: plugin.string.ExportRequestFailedMessage
})
return
}
const filename = `Talants_${new Date().toLocaleDateString()}_${new Date().toLocaleTimeString()}.csv`
const contentDisposition = res.headers.get('Content-Disposition')
const filename = contentDisposition?.match(/filename="([^"]*)"/)?.[1] ?? 'export.csv'
const blob = await res.blob()
const url = window.URL.createObjectURL(blob)
const a = document.createElement('a')
+3
View File
@@ -17,6 +17,9 @@ import { type Resources } from '@hcengineering/platform'
import ExportButton from './components/ExportButton.svelte'
import ExportSettings from './components/ExportSettings.svelte'
export { default as ExportButton } from './components/ExportButton.svelte'
export { default as ExportSettings } from './components/ExportSettings.svelte'
export default async (): Promise<Resources> => ({
component: {
ExportButton,