[deps] Fix compatibility of EditJob with current API.

This should, by the way, fix issues with Safari browser.
This commit is contained in:
Ferdinand Thiessen 2021-11-16 23:27:20 +01:00
parent a8953bbae6
commit a0192418e2
2 changed files with 6 additions and 6 deletions

View File

@ -78,7 +78,7 @@
</q-card-section> </q-card-section>
<q-card-section v-for="(job, index) in event.jobs" :key="index"> <q-card-section v-for="(job, index) in event.jobs" :key="index">
<q-card class="q-my-auto"> <q-card class="q-my-auto">
<job <edit-job-slot
v-model="event.jobs[index]" v-model="event.jobs[index]"
:job-can-delete="jobDeleteDisabled" :job-can-delete="jobDeleteDisabled"
@remove-job="removeJob(index)" @remove-job="removeJob(index)"
@ -105,12 +105,12 @@ import { date, ModifyDateOptions } from 'quasar';
import { useScheduleStore } from '../../store'; import { useScheduleStore } from '../../store';
import { notEmpty } from '@flaschengeist/api'; import { notEmpty } from '@flaschengeist/api';
import { IsoDateInput } from '@flaschengeist/api/components'; import { IsoDateInput } from '@flaschengeist/api/components';
import Job from './Job.vue'; import EditJobSlot from './EditJobSlot.vue';
import RecurrenceRule from './RecurrenceRule.vue'; import RecurrenceRule from './RecurrenceRule.vue';
export default defineComponent({ export default defineComponent({
name: 'EditEvent', name: 'EditEvent',
components: { IsoDateInput, Job, RecurrenceRule }, components: { IsoDateInput, EditJobSlot, RecurrenceRule },
props: { props: {
modelValue: { modelValue: {
required: false, required: false,

View File

@ -56,7 +56,7 @@ import { notEmpty } from '@flaschengeist/api';
import { useScheduleStore } from '../../store'; import { useScheduleStore } from '../../store';
export default defineComponent({ export default defineComponent({
name: 'Job', name: 'JobSlot',
components: { IsoDateInput }, components: { IsoDateInput },
props: { props: {
modelValue: { modelValue: {
@ -95,8 +95,8 @@ export default defineComponent({
emit('remove-job'); emit('remove-job');
} }
function isAfterDate(val: string) { function isAfterDate(val: Date) {
return props.modelValue.start < new Date(val) || 'Ende muss hinter dem Start liegen'; return props.modelValue.start < val || 'Ende muss hinter dem Start liegen';
} }
return { return {