From ea5e626e8a852f6d53b2f619be50928db36acfcd Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Fri, 3 Jun 2022 17:41:27 +0200 Subject: [PATCH] improved loading of selected date --- resources/js/Pages/VacationRequest/Create.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/js/Pages/VacationRequest/Create.vue b/resources/js/Pages/VacationRequest/Create.vue index 4749121..091e3d1 100644 --- a/resources/js/Pages/VacationRequest/Create.vue +++ b/resources/js/Pages/VacationRequest/Create.vue @@ -352,12 +352,14 @@ const form = useForm({ ? props.users.data.find(user => user.id === (props.userId ?? props.auth.user.id)) ?? props.users.data[0] : props.auth.user, from: props.vacationStartDate, - to: null, + to: props.vacationStartDate, vacationType: null, comment: null, flowSkipped: false, }) +refreshEstimatedDays(form.from, form.to) + const estimatedDays = ref([]) const vacationTypes = ref([])