This commit is contained in:
Adrian Hopek
2022-03-22 11:58:26 +01:00
parent 95f5ed44d6
commit fca0b0593c
33 changed files with 940 additions and 1466 deletions

View File

@@ -65,7 +65,7 @@ const types = [
},
]
export function useVacationTypeInfo() {
export default function useVacationTypeInfo() {
const getTypes = () => types
const findType = value => types.find(type => type.value === value)

View File

@@ -1,5 +1,5 @@
import {computed} from 'vue'
import {usePage} from '@inertiajs/inertia-vue3'
import { computed } from 'vue'
import { usePage } from '@inertiajs/inertia-vue3'
export default function useCurrentYearPeriodInfo() {
const minDate = computed(() => new Date(usePage().props.value.years.current, 0, 1))