Compare commits
2 Commits
0e06c6ec54
...
d2d753640c
Author | SHA1 | Date | |
---|---|---|---|
d2d753640c | |||
40e74be394 |
@ -20,11 +20,9 @@
|
|||||||
<div class="grid grid-cols-1 gap-4">
|
<div class="grid grid-cols-1 gap-4">
|
||||||
<VacationStats :stats="stats" />
|
<VacationStats :stats="stats" />
|
||||||
<AbsenceList
|
<AbsenceList
|
||||||
v-if="years.current.year === years.selected.year && absences.data.length"
|
|
||||||
:absences="absences.data"
|
:absences="absences.data"
|
||||||
/>
|
/>
|
||||||
<HomeOfficeList
|
<HomeOfficeList
|
||||||
v-if="years.current.year === years.selected.year && remoteDays.data.length"
|
|
||||||
:remote-days="remoteDays.data"
|
:remote-days="remoteDays.data"
|
||||||
/>
|
/>
|
||||||
<UpcomingHolidays
|
<UpcomingHolidays
|
||||||
|
@ -8,7 +8,10 @@
|
|||||||
No search result
|
No search result
|
||||||
</slot>
|
</slot>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-sm">
|
<p
|
||||||
|
v-if="showDescription"
|
||||||
|
class="text-sm"
|
||||||
|
>
|
||||||
<slot name="text">
|
<slot name="text">
|
||||||
Try a different search query
|
Try a different search query
|
||||||
</slot>
|
</slot>
|
||||||
@ -18,4 +21,11 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { SearchIcon } from '@heroicons/vue/solid'
|
import { SearchIcon } from '@heroicons/vue/solid'
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
showDescription: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-4 border-t border-gray-200 sm:px-6">
|
<div class="px-4 border-t border-gray-200 sm:px-6">
|
||||||
<ul class="divide-y divide-gray-200">
|
<ul
|
||||||
|
v-if="absences.length"
|
||||||
|
class="divide-y divide-gray-200"
|
||||||
|
>
|
||||||
<li
|
<li
|
||||||
v-for="absence in absences"
|
v-for="absence in absences"
|
||||||
:key="absence.user.id"
|
:key="absence.user.id"
|
||||||
@ -26,11 +29,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<EmptyState
|
||||||
|
v-else
|
||||||
|
:show-description="false"
|
||||||
|
>
|
||||||
|
<template #head>
|
||||||
|
<SunIcon class="mx-auto w-12 h-12" />
|
||||||
|
</template>
|
||||||
|
<template #title>
|
||||||
|
Brak nieobecności
|
||||||
|
</template>
|
||||||
|
</EmptyState>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import EmptyState from '@/Shared/Feedbacks/EmptyState'
|
||||||
|
import { SunIcon } from '@heroicons/vue/solid'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
absences: Object,
|
absences: Object,
|
||||||
})
|
})
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-4 border-t border-gray-200 sm:px-6">
|
<div class="px-4 border-t border-gray-200 sm:px-6">
|
||||||
<ul class="divide-y divide-gray-200">
|
<ul
|
||||||
|
v-if="remoteDays.length"
|
||||||
|
class="divide-y divide-gray-200"
|
||||||
|
>
|
||||||
<li
|
<li
|
||||||
v-for="day in remoteDays"
|
v-for="day in remoteDays"
|
||||||
:key="day.user.id"
|
:key="day.user.id"
|
||||||
@ -26,11 +29,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<EmptyState
|
||||||
|
v-else
|
||||||
|
:show-description="false"
|
||||||
|
>
|
||||||
|
<template #head>
|
||||||
|
<HomeCityIcon
|
||||||
|
class="flex justify-center"
|
||||||
|
size="48"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<template #title>
|
||||||
|
Nikt nie pracuje z domu
|
||||||
|
</template>
|
||||||
|
</EmptyState>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import EmptyState from '@/Shared/Feedbacks/EmptyState'
|
||||||
|
import HomeCityIcon from 'vue-material-design-icons/HomeCity'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
remoteDays: Object,
|
remoteDays: Object,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user