+
{{ $t('shared.misc.in') }}
@@ -228,20 +229,21 @@
v-model="shift.end_time"
:standout="$q.dark.isActive ? 'bg-blue-grey-3' : 'bg-blue-grey-9'"
dense
- :borderless="(shift.is_approved || isTimesheetApproved)"
- :readonly="(shift.is_approved || isTimesheetApproved)"
+ :borderless="(shift.is_approved && isTimesheetApproved)"
+ :readonly="(shift.is_approved && isTimesheetApproved)"
type="time"
label-slot
- :label-color="(shift.is_approved || isTimesheetApproved) ? 'white' : 'accent'"
- :input-class="'text-weight-medium ' + (shift.id === -2 ? 'text-white ' : ' ') + ((shift.is_approved || isTimesheetApproved) ? 'cursor-not-allowed text-white' : '')"
+ :label-color="!shift.is_approved ? 'accent' : 'white'"
+ :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;"
class="col rounded-5 bg-dark"
- :class="(shift.id === -2 ? 'bg-negative ' : ' ') + (ui_store.is_mobile_mode ? 'q-ml-xs ' : 'q-mx-xs ') + ((shift.is_approved || isTimesheetApproved) ? 'cursor-not-allowed q-px-xs transparent inset-shadow' : '')"
+ :class="(shift.id === -2 ? 'bg-negative ' : ' ') + (ui_store.is_mobile_mode ? 'q-mr-xs ' : 'q-mx-xs ') + (shift.is_approved ? 'cursor-not-allowed q-px-xs transparent inset-shadow' : (isTimesheetApproved ? 'inset-shadow' : ''))"
:style="shift.is_approved ? 'background-color: #0a7d32 !important;' : ''"
>
{{ $t('shared.misc.out') }}
@@ -325,7 +327,14 @@
class="col"
:class="shift.is_approved ? 'invisible' : ''"
@click="$emit('requestDelete')"
- />
+ >
+
+