
* #99 - ui changes * #99 - logo fix * #99 - tailwind plugin for eslint * #99 - fix * #99 - fix * #99 - fix pagination * #99 - fix logo Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
42 lines
720 B
Vue
42 lines
720 B
Vue
<template>
|
|
<div class="min-h-full">
|
|
<MainMenu
|
|
:auth="auth"
|
|
:years="years"
|
|
/>
|
|
<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,
|
|
})
|
|
|
|
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>
|