diff --git a/src/modules/events/views/EventsPage.vue b/src/modules/events/views/EventsPage.vue index 121941e..7ffc44d 100644 --- a/src/modules/events/views/EventsPage.vue +++ b/src/modules/events/views/EventsPage.vue @@ -61,6 +61,18 @@ const { const filtersOpen = ref(false) const calendarOpen = ref(false) +// Events feeding the calendar popup's per-day dots. Respects the active +// category filter (so the calendar reflects what the user is browsing), +// but not the temporal/day filters — the calendar is for picking any +// date. No categories selected ⇒ all events. +const calendarEvents = computed(() => + selectedCategories.value.length + ? allEvents.value.filter( + (e) => e.category && selectedCategories.value.includes(e.category), + ) + : allEvents.value, +) + // Human label for the active day filter, shown as a removable chip. const selectedDateLabel = computed(() => selectedDate.value @@ -255,7 +267,7 @@ onBeforeRouteLeave(() => { day filters the feed to it and closes. -->