Vereinheitliche Empty States in Tabellen
This commit is contained in:
@@ -461,6 +461,7 @@ 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,11 +491,11 @@ onMounted(async () => {
|
||||
{{ getEntityLabel(plantOptions, row.original.plant?.id || row.original.plant) || "-" }}
|
||||
</template>
|
||||
</UTable>
|
||||
<UAlert
|
||||
<UTable
|
||||
v-else
|
||||
icon="i-heroicons-circle-stack-20-solid"
|
||||
title="Keine Aufgaben anzuzeigen"
|
||||
variant="subtle"
|
||||
:data="[]"
|
||||
:columns="normalizedListColumns"
|
||||
:empty="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Aufgaben anzuzeigen' }"
|
||||
/>
|
||||
</UDashboardPanelContent>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user