diff --git a/src/modules/timesheets/components/shift-list-day-row.vue b/src/modules/timesheets/components/shift-list-day-row.vue index 67c5f25..94ec03a 100644 --- a/src/modules/timesheets/components/shift-list-day-row.vue +++ b/src/modules/timesheets/components/shift-list-day-row.vue @@ -17,10 +17,11 @@ const select_ref = ref(null); const error_message = ref(''); - const { errorMessage = undefined, isTimesheetApproved = false } = defineProps<{ + const { errorMessage = undefined, isTimesheetApproved = false, holiday = false } = defineProps<{ dense?: boolean; isTimesheetApproved?: boolean; errorMessage?: string | undefined; + holiday?: boolean | undefined; }>(); const emit = defineEmits<{ @@ -89,7 +90,7 @@ class="col rounded-5 q-mx-xs bg-dark" :class="!shift.is_approved && !isTimesheetApproved ? '' : 'inset-shadow'" popup-content-class="text-uppercase text-weight-bold text-center rounded-5" - :style="shift.is_approved ? 'background-color: #0a7d32 !important;' : ''" + :style="shift.is_approved ? (holiday ? 'background-color: #7b1fa2 !important' : 'background-color: #0a7d32 !important;') : ''" popup-content-style="border: 2px solid var(--q-accent)" @blur="onBlurShiftTypeSelect" @update:model-value="option => shift.type = option.value" @@ -102,7 +103,7 @@ > @@ -191,12 +192,12 @@ hide-bottom-space :error="shift.has_error" :error-message="errorMessage || error_message !== '' ? $t(errorMessage ?? error_message) : ''" - :label-color="!shift.is_approved ? 'accent' : 'white'" + :label-color="!shift.is_approved ? (holiday? 'purple-5' : 'accent') : 'white'" class="col rounded-5 bg-dark q-mx-xs" :class="(shift.id === -2 ? 'bg-negative ' : ' ') + (!shift.is_approved && !isTimesheetApproved ? '' : 'cursor-not-allowed inset-shadow')" :input-class="'text-weight-medium ' + (shift.id === -2 ? 'text-white ' : ' ') + (shift.is_approved ? 'text-white cursor-not-allowed q-px-sm' : '')" input-style="font-size: 1.2em;" - :style="shift.is_approved ? 'background-color: #0a7d32 !important;' : ''" + :style="shift.is_approved ? (holiday ? 'background-color: #7b1fa2 !important' : 'background-color: #0a7d32 !important;') : ''" @blur="onTimeFieldBlur(shift.start_time)" >