diff --git a/babex-vue/src/api.ts b/babex-vue/src/api.ts index 3ac63e92..0b8f9781 100644 --- a/babex-vue/src/api.ts +++ b/babex-vue/src/api.ts @@ -217,7 +217,6 @@ class GenericApiPart extends ApiPart { interface AppointmentCreate { start: Date, - end: Date, experiment: number, leader: number, participant: number, diff --git a/babex-vue/src/components/agenda/AgendaCalendar.vue b/babex-vue/src/components/agenda/AgendaCalendar.vue index ed895e25..1d229fc8 100644 --- a/babex-vue/src/components/agenda/AgendaCalendar.vue +++ b/babex-vue/src/components/agenda/AgendaCalendar.vue @@ -20,7 +20,7 @@ // optional experiment id for limiting feeds experiment?: number, - scheduling?: boolean, + duration?: number, }>(); // from https://stackoverflow.com/a/64090995 @@ -130,7 +130,9 @@ allDaySlot: false, slotMinTime: "07:00:00", slotMaxTime: "20:00:00", - slotDuration: props.scheduling ? "00:15:00" : "00:30:00", + slotDuration: {minutes: props.duration ?? 30}, + defaultTimedEventDuration: {minutes: props.duration}, + forceEventDuration: props.duration ? true : false, eventTimeFormat: { hour: '2-digit', minute: '2-digit', diff --git a/babex-vue/src/components/agenda/AppointmentForm.vue b/babex-vue/src/components/agenda/AppointmentForm.vue index 7c9ee271..75cf35be 100644 --- a/babex-vue/src/components/agenda/AppointmentForm.vue +++ b/babex-vue/src/components/agenda/AppointmentForm.vue @@ -1,5 +1,5 @@