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:
@@ -461,7 +461,6 @@ onMounted(async () => {
|
||||
:data="filteredTasks"
|
||||
:columns="normalizedListColumns"
|
||||
:on-select="(task) => openTaskViaRoute(task)"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Aufgaben anzuzeigen' }"
|
||||
>
|
||||
<template #actions-cell="{ row }">
|
||||
<UButton
|
||||
@@ -490,13 +489,19 @@ onMounted(async () => {
|
||||
<template #plant-cell="{ row }">
|
||||
{{ getEntityLabel(plantOptions, row.original.plant?.id || row.original.plant) || "-" }}
|
||||
</template>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine Aufgaben anzuzeigen" />
|
||||
</template>
|
||||
</UTable>
|
||||
<UTable
|
||||
v-else
|
||||
:data="[]"
|
||||
:columns="normalizedListColumns"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Aufgaben anzuzeigen' }"
|
||||
/>
|
||||
>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine Aufgaben anzuzeigen" />
|
||||
</template>
|
||||
</UTable>
|
||||
</UDashboardPanelContent>
|
||||
|
||||
<UModal v-model:open="isModalOpen" :prevent-close="saving || deleting">
|
||||
|
||||
Reference in New Issue
Block a user