diff --git a/src/plugins/events/components/overview/AgendaView.vue b/src/plugins/events/components/overview/AgendaView.vue index c9db532..64f187b 100644 --- a/src/plugins/events/components/overview/AgendaView.vue +++ b/src/plugins/events/components/overview/AgendaView.vue @@ -12,7 +12,7 @@ align="right" style="position: sticky; top: 5px; padding-right: 5px; z-index: 999" > - +
@@ -21,94 +21,95 @@ -
- - {{ asMonth(selectedDate) }} {{ asYear(selectedDate) }} - - -
- - -
-
-
-
-
- - - - - -
- - - -
- + {{ asMonth(selectedDate) }} {{ asYear(selectedDate) }} + + +
+ + +
+
+
+
+
- - - -
+ + + + + +
+ + + + + + + +
@@ -178,7 +179,6 @@ export default defineComponent({ async function loadAgendas() { const selected = new Date(selectedDate.value); - console.log(selected); const start = calendarRealView.value === 'day' ? selected : startOfWeek(selected); const end = date.addToDate(start, { days: calendarDays.value }); @@ -262,7 +262,8 @@ export default defineComponent({ } function newEvent(start: Date | string | number) { - editor.value = Object.assign({}, emptyEvent, { start: start }); + if (typeof start === 'string') start = date.extractDate(start, 'YYYY-MM-DD'); + editor.value = emptyEvent(new Date(start)); } return {