[deps] Fix compatibility of EditJob with current API.
This should, by the way, fix issues with Safari browser.
This commit is contained in:
parent
a8953bbae6
commit
a0192418e2
|
@ -78,7 +78,7 @@
|
|||
</q-card-section>
|
||||
<q-card-section v-for="(job, index) in event.jobs" :key="index">
|
||||
<q-card class="q-my-auto">
|
||||
<job
|
||||
<edit-job-slot
|
||||
v-model="event.jobs[index]"
|
||||
:job-can-delete="jobDeleteDisabled"
|
||||
@remove-job="removeJob(index)"
|
||||
|
@ -105,12 +105,12 @@ import { date, ModifyDateOptions } from 'quasar';
|
|||
import { useScheduleStore } from '../../store';
|
||||
import { notEmpty } from '@flaschengeist/api';
|
||||
import { IsoDateInput } from '@flaschengeist/api/components';
|
||||
import Job from './Job.vue';
|
||||
import EditJobSlot from './EditJobSlot.vue';
|
||||
import RecurrenceRule from './RecurrenceRule.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'EditEvent',
|
||||
components: { IsoDateInput, Job, RecurrenceRule },
|
||||
components: { IsoDateInput, EditJobSlot, RecurrenceRule },
|
||||
props: {
|
||||
modelValue: {
|
||||
required: false,
|
||||
|
|
|
@ -56,7 +56,7 @@ import { notEmpty } from '@flaschengeist/api';
|
|||
import { useScheduleStore } from '../../store';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Job',
|
||||
name: 'JobSlot',
|
||||
components: { IsoDateInput },
|
||||
props: {
|
||||
modelValue: {
|
||||
|
@ -95,8 +95,8 @@ export default defineComponent({
|
|||
emit('remove-job');
|
||||
}
|
||||
|
||||
function isAfterDate(val: string) {
|
||||
return props.modelValue.start < new Date(val) || 'Ende muss hinter dem Start liegen';
|
||||
function isAfterDate(val: Date) {
|
||||
return props.modelValue.start < val || 'Ende muss hinter dem Start liegen';
|
||||
}
|
||||
|
||||
return {
|
Loading…
Reference in New Issue