fix: evaluation related issues

This commit is contained in:
Jannat Patel
2024-05-30 12:16:01 +05:30
parent e6d58721f0
commit 7f2821f639
4 changed files with 31 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ function submitEvaluation(close) {
if (!evaluation.start_time) {
return 'Please select a slot.'
}
if (dayjs(evaluation.date).isSameOrBefore(dayjs(), 'day')) {
if (dayjs(evaluation.date).isBefore(dayjs(), 'day')) {
return 'Please select a future date.'
}
if (dayjs(evaluation.date).isAfter(dayjs(props.endDate), 'day')) {

View File

@@ -84,7 +84,7 @@
type="date"
:label="__('From')"
v-model="from"
@change.stop="
@blur="
() => {
updateUnavailability.submit({
field: 'unavailable_from',
@@ -97,7 +97,7 @@
type="date"
:label="__('To')"
v-model="to"
@change.stop="
@blur="
() => {
updateUnavailability.submit({
field: 'unavailable_to',