- fix to empty states (#163)
* #150 - changed the default colour for empty states * #150 - added empty states for user requests * #31 - amended text for empty states - employee
This commit is contained in:
parent
4b06e6c02b
commit
fe639f264d
@ -176,7 +176,14 @@
|
|||||||
colspan="100%"
|
colspan="100%"
|
||||||
class="py-4 text-xl leading-5 text-center text-gray-700"
|
class="py-4 text-xl leading-5 text-center text-gray-700"
|
||||||
>
|
>
|
||||||
Brak danych
|
<EmptyState>
|
||||||
|
<template #title>
|
||||||
|
Brak wniosków
|
||||||
|
</template>
|
||||||
|
<template #text>
|
||||||
|
Nie znaleziono wniosków o danym statusie
|
||||||
|
</template>
|
||||||
|
</EmptyState>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -195,6 +202,7 @@ import { Listbox, ListboxButton, ListboxLabel, ListboxOption, ListboxOptions } f
|
|||||||
import { reactive, watch } from 'vue'
|
import { reactive, watch } from 'vue'
|
||||||
import { debounce } from 'lodash'
|
import { debounce } from 'lodash'
|
||||||
import { Inertia } from '@inertiajs/inertia'
|
import { Inertia } from '@inertiajs/inertia'
|
||||||
|
import EmptyState from '@/Shared/Feedbacks/EmptyState'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
requests: Object,
|
requests: Object,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="text-center my-5">
|
<div class="text-center my-5 text-gray-500">
|
||||||
<slot name="head">
|
<slot name="head">
|
||||||
<SearchIcon class="mx-auto w-12 h-12" />
|
<SearchIcon class="mx-auto w-12 h-12" />
|
||||||
</slot>
|
</slot>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
No search result
|
No search result
|
||||||
</slot>
|
</slot>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-sm text-gray-500">
|
<p class="text-sm">
|
||||||
<slot name="text">
|
<slot name="text">
|
||||||
Try a different search query
|
Try a different search query
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="! requests.length">
|
<li v-if="! requests.length">
|
||||||
<EmptyState class="text-gray-700">
|
<EmptyState>
|
||||||
<template #head>
|
<template #head>
|
||||||
<CollectionIcon class="mx-auto w-12 h-12" />
|
<CollectionIcon class="mx-auto w-12 h-12" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li v-if="! requests.length">
|
<li v-if="! requests.length">
|
||||||
<p class="py-2">
|
<p class="py-2">
|
||||||
<EmptyState class="text-gray-700">
|
<EmptyState>
|
||||||
<template #head>
|
<template #head>
|
||||||
<CollectionIcon class="mx-auto w-12 h-12" />
|
<CollectionIcon class="mx-auto w-12 h-12" />
|
||||||
</template>
|
</template>
|
||||||
@ -46,7 +46,7 @@
|
|||||||
Brak wniosków
|
Brak wniosków
|
||||||
</template>
|
</template>
|
||||||
<template #text>
|
<template #text>
|
||||||
Nie ma oczekujących wniosków
|
Nie utworzono jeszcze wniosku
|
||||||
</template>
|
</template>
|
||||||
</EmptyState>
|
</EmptyState>
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user