KI-AGENT: Tabellen-Empty-States ohne JSON rendern
Ersetzt ungültige UTable-Empty-Props durch einen gemeinsamen Empty-State-Slot, damit leere Tabellen keine Objekt-/JSON-Ausgabe mehr anzeigen.
This commit is contained in:
@@ -154,7 +154,6 @@ const createExport = async () => {
|
||||
{ key: 'type', label: 'Typ' },
|
||||
{ key: 'download', label: 'Download' },
|
||||
])"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Exporte anzuzeigen' }"
|
||||
>
|
||||
<template #created_at-cell="{row}">
|
||||
{{dayjs(row.original.created_at).format("DD.MM.YYYY HH:mm")}}
|
||||
@@ -171,6 +170,9 @@ const createExport = async () => {
|
||||
<template #download-cell="{row}">
|
||||
<UButton @click="downloadFile(row.original)">Download</UButton>
|
||||
</template>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine Exporte anzuzeigen" />
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
<UModal v-model:open="showCreateExportModal">
|
||||
|
||||
Reference in New Issue
Block a user