- add empty states

This commit is contained in:
2023-08-05 00:08:47 +02:00
parent 252f5ee6b7
commit 957e90aff6
5 changed files with 65 additions and 12 deletions

View File

@@ -1,4 +1,6 @@
<script setup>
import EmptyState from '@/Share/Components/EmptyState.vue';
defineProps({
cvs: {
type: Object,
@@ -82,9 +84,10 @@ function copySlug(slug) {
</InertiaLink>
</tbody>
</table>
<div v-else>
Pusta lista
</div>
<EmptyState v-else :icon="['fas', 'file']">
<template #title>Nie znaleziono</template>
<template #text>Nie dodano jeszcze CV do listy.</template>
</EmptyState>
</div>
</div>
</template>