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:
@@ -73,7 +73,6 @@ const filteredRows = computed(() => {
|
||||
</UDashboardToolbar>
|
||||
<UTable
|
||||
:data="filteredRows"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: `Keine Tickets anzuzeigen` }"
|
||||
:on-select="(i) => router.push(`/support/${i.id}`)"
|
||||
:columns="normalizeTableColumns([{key:'created_at',label:'Datum'}, ...profileStore.currentTenant === 5 ? [{key:'tenant',label:'Tenant'}] : [],{key:'status',label:'Status'},{key:'title',label:'Titel'},{key:'created_by',label:'Ersteller'},{key:'ticketmessages',label:'Nachrichten'}])"
|
||||
>
|
||||
@@ -93,6 +92,9 @@ const filteredRows = computed(() => {
|
||||
<template #ticketmessages-cell="{ row }">
|
||||
{{row.original.ticketmessages.length}}
|
||||
</template>
|
||||
<template #empty>
|
||||
<TableEmptyState :label="`Keine Tickets anzuzeigen`" />
|
||||
</template>
|
||||
</UTable>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user