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:
@@ -199,7 +199,6 @@ setupPage()
|
||||
class="w-full"
|
||||
:ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }"
|
||||
:on-select="(row) => router.push(`/accounts/show/${row.original.id}`)"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Buchungen anzuzeigen' }"
|
||||
>
|
||||
<template #allocations-cell="{row}">
|
||||
<span v-if="dataLoaded">{{row.original.allocations ? row.original.allocations : null}}</span>
|
||||
@@ -210,6 +209,9 @@ setupPage()
|
||||
<span v-if="dataLoaded">{{row.original.allocations ? useCurrency(row.original.saldo) : null}}</span>
|
||||
<USkeleton v-else class="h-4 w-[250px]" />
|
||||
</template>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine Buchungen anzuzeigen" />
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user