* #38 - wip * #38 - wip * #38 - fix * #38 - fix * #38 - fix * #38 - fix * Update resources/lang/pl.json Co-authored-by: Krzysztof Rewak <krzysztof.rewak@blumilk.pl> * #38 - cr fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> Co-authored-by: Krzysztof Rewak <krzysztof.rewak@blumilk.pl>
This commit is contained in:
12
resources/js/Composables/yearPeriodInfo.js
Normal file
12
resources/js/Composables/yearPeriodInfo.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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))
|
||||
const maxDate = computed(() => new Date(usePage().props.value.years.current, 11, 31))
|
||||
|
||||
return {
|
||||
minDate,
|
||||
maxDate,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user