✨ Add audit log CSV download
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue'
|
||||
import { partCount, formatBytes, formatDateTime, baseName } from '~/utils/format'
|
||||
import { saveBlob } from '~/utils/download'
|
||||
import { Popup, PopupSize } from '~/utils/popup'
|
||||
import TextPreviewPopup from '~/components/popup/TextPreviewPopup.vue'
|
||||
import ConfirmPopup, { type ConfirmPayload } from '~/components/popup/ConfirmPopup.vue'
|
||||
@@ -130,13 +131,7 @@ async function download() {
|
||||
}
|
||||
downloading.value = true
|
||||
try {
|
||||
const blob = await downloadObject(props.bucket, props.object.key)
|
||||
const url = URL.createObjectURL(blob)
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.download = baseName(props.object.key)
|
||||
link.click()
|
||||
URL.revokeObjectURL(url)
|
||||
saveBlob(await downloadObject(props.bucket, props.object.key), baseName(props.object.key))
|
||||
}
|
||||
catch {
|
||||
emit('error', `${baseName(props.object.key)} konnte nicht heruntergeladen werden.`)
|
||||
|
||||
Reference in New Issue
Block a user