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:
@@ -347,8 +347,11 @@ onMounted(async () => {
|
||||
])"
|
||||
:on-select="(row) => router.push(`/administration/users/${row.original?.id || row.id}`)"
|
||||
class="mt-4"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine zugeordneten Benutzer gefunden' }"
|
||||
/>
|
||||
>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine zugeordneten Benutzer gefunden" />
|
||||
</template>
|
||||
</UTable>
|
||||
</UCard>
|
||||
|
||||
<USkeleton v-if="loading" class="h-80" />
|
||||
|
||||
@@ -179,8 +179,11 @@ onMounted(async () => {
|
||||
:columns="normalizeTableColumns(templateColumns)"
|
||||
:loading="loading"
|
||||
:on-select="(row) => router.push(`/administration/tenants/${row.original?.id || row.id}`)"
|
||||
:empty="{ icon: 'i-heroicons-building-office-2', label: 'Keine Tenants gefunden' }"
|
||||
/>
|
||||
>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine Tenants gefunden" icon="i-heroicons-building-office-2" />
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
<UModal v-model:open="createTenantModalOpen">
|
||||
<template #content>
|
||||
|
||||
@@ -136,8 +136,11 @@ onMounted(async () => {
|
||||
:columns="normalizeTableColumns(templateColumns)"
|
||||
:loading="loading"
|
||||
:on-select="(row) => router.push(`/administration/users/${row.original?.id || row.id}`)"
|
||||
:empty="{ icon: 'i-heroicons-users', label: 'Keine Benutzer gefunden' }"
|
||||
/>
|
||||
>
|
||||
<template #empty>
|
||||
<TableEmptyState label="Keine Benutzer gefunden" icon="i-heroicons-users" />
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
<UModal v-model:open="createUserModalOpen">
|
||||
<template #content>
|
||||
|
||||
Reference in New Issue
Block a user