
* fix css focuses * #90 - wip * #90 - fix to generate PDF * #90 - wip * #90 - wip * #90 - wip * #90 - wip * #90 - fix to calendar * #90 - wip * #90 - fix * #90 - fix lint * #90 - fix * Apply suggestions from code review Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * #90 - cr fixes * #90 - fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
44 lines
808 B
Vue
44 lines
808 B
Vue
<template>
|
|
<div class="min-h-full">
|
|
<MainMenu
|
|
:auth="auth"
|
|
:years="years"
|
|
:vacation-requests-count="vacationRequestsCount"
|
|
/>
|
|
<main class="flex flex-col flex-1 py-8 lg:ml-64">
|
|
<div class="lg:px-4">
|
|
<slot />
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import MainMenu from '@/Shared/MainMenu'
|
|
import { useToast } from 'vue-toastification'
|
|
import { watch } from 'vue'
|
|
|
|
const props = defineProps({
|
|
flash: Object,
|
|
auth: Object,
|
|
years: Object,
|
|
vacationRequestsCount: Number,
|
|
})
|
|
|
|
const toast = useToast()
|
|
|
|
watch(() => props.flash, flash => {
|
|
if (flash.success) {
|
|
toast.success(flash.success)
|
|
}
|
|
|
|
if (flash.info) {
|
|
toast.info(flash.info)
|
|
}
|
|
|
|
if (flash.error) {
|
|
toast.error(flash.error)
|
|
}
|
|
}, { immediate:true })
|
|
</script>
|