KI-AGENT: StandardEntity Empty-State vereinheitlichen
Rendert die StandardEntity-Tabelle auch ohne Einträge und nutzt den gemeinsamen Empty-State statt der separaten Card.
This commit is contained in:
@@ -439,7 +439,7 @@ const isDistinctFilterActive = (columnKey) => {
|
|||||||
<UTable
|
<UTable
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
v-model:sorting="sorting"
|
v-model:sorting="sorting"
|
||||||
v-if="dataType && columns && items.length > 0 && !loading"
|
v-if="dataType && columns && !loading"
|
||||||
:data="items"
|
:data="items"
|
||||||
:columns="normalizeTableColumns(columns)"
|
:columns="normalizeTableColumns(columns)"
|
||||||
class="w-full"
|
class="w-full"
|
||||||
@@ -569,22 +569,6 @@ const isDistinctFilterActive = (columnKey) => {
|
|||||||
<TableEmptyState :label="`Keine ${dataType.label} anzuzeigen`" />
|
<TableEmptyState :label="`Keine ${dataType.label} anzuzeigen`" />
|
||||||
</template>
|
</template>
|
||||||
</UTable>
|
</UTable>
|
||||||
<UCard
|
|
||||||
class="w-1/3 mx-auto mt-10"
|
|
||||||
v-else-if="!loading"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="flex flex-col text-center"
|
|
||||||
>
|
|
||||||
<UIcon
|
|
||||||
class="mx-auto w-10 h-10 mb-5"
|
|
||||||
name="i-heroicons-circle-stack-20-solid"/>
|
|
||||||
<span class="font-bold">Keine {{dataType.label}} anzuzeigen</span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</UCard>
|
|
||||||
<UProgress v-else animation="carousel" class="w-3/4 mx-auto mt-5"></UProgress>
|
<UProgress v-else animation="carousel" class="w-3/4 mx-auto mt-5"></UProgress>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="relative flex flex-col h-[calc(100dvh-80px)]">
|
<div v-else class="relative flex flex-col h-[calc(100dvh-80px)]">
|
||||||
@@ -681,8 +665,7 @@ const isDistinctFilterActive = (columnKey) => {
|
|||||||
v-if="!loading && items.length === 0"
|
v-if="!loading && items.length === 0"
|
||||||
class="mx-auto mt-10 p-6 text-center"
|
class="mx-auto mt-10 p-6 text-center"
|
||||||
>
|
>
|
||||||
<UIcon name="i-heroicons-circle-stack-20-solid" class="mx-auto w-10 h-10 mb-3"/>
|
<TableEmptyState :label="`Keine ${dataType.label} anzuzeigen`" />
|
||||||
<p class="font-bold">Keine {{ dataType.label }} gefunden</p>
|
|
||||||
</UCard>
|
</UCard>
|
||||||
|
|
||||||
<div v-if="loading" class="mt-5">
|
<div v-if="loading" class="mt-5">
|
||||||
|
|||||||
Reference in New Issue
Block a user