From 0ddbec1499abc389bb7ecad4289a2d3cad9aeb27 Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Thu, 7 Jul 2022 09:11:40 +0200 Subject: [PATCH] - small improvements --- .../Shared/Widgets/Calendar/DayComponent.vue | 8 +-- .../js/Shared/Widgets/VacationCalendar.vue | 61 +++++++++---------- 2 files changed, 32 insertions(+), 37 deletions(-) diff --git a/resources/js/Shared/Widgets/Calendar/DayComponent.vue b/resources/js/Shared/Widgets/Calendar/DayComponent.vue index 8cc6fc7..ec1c8c1 100644 --- a/resources/js/Shared/Widgets/Calendar/DayComponent.vue +++ b/resources/js/Shared/Widgets/Calendar/DayComponent.vue @@ -13,7 +13,8 @@ } ], day.isHoliday && 'font-bold cursor-default', - (day.isPendingVacation) && `border-b-4 border-dashed ${day.getVacationType.border} md:border-blumilk-600` + (day.isPendingVacation) && `border-b-4 border-dashed ${day.getVacationType.border}`, + (day.isVacation) && `border-b-4 ${day.getVacationType.border}` ]" > @@ -103,9 +104,6 @@ defineProps({ type: Object, required: true, }, - getHolidayDescription: { - type: Function, - }, }) const isActive = ref(false) diff --git a/resources/js/Shared/Widgets/VacationCalendar.vue b/resources/js/Shared/Widgets/VacationCalendar.vue index 2deba40..4c797b1 100644 --- a/resources/js/Shared/Widgets/VacationCalendar.vue +++ b/resources/js/Shared/Widgets/VacationCalendar.vue @@ -7,11 +7,10 @@