From 69717f26f36dd396bd1235ff1e94595cb2e01477 Mon Sep 17 00:00:00 2001 From: summersamara Date: Mon, 18 Dec 2023 18:29:44 +0100 Subject: [PATCH] try to fix events calendar routing --- lib/web/router.ex | 1 + src/router/event.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/web/router.ex b/lib/web/router.ex index 771aaa7d7..6233aed7b 100644 --- a/lib/web/router.ex +++ b/lib/web/router.ex @@ -189,6 +189,7 @@ defmodule Mobilizon.Web.Router do get("/events/create", PageController, :create_event) get("/events/list", PageController, :list_events) get("/events/me", PageController, :my_events) + get("/events/calendar", PageController, :calendar) get("/events/:uuid/edit", PageController, :edit_event) # This is a hack to ease link generation into emails diff --git a/src/router/event.ts b/src/router/event.ts index f4273d0f4..5b92a3800 100644 --- a/src/router/event.ts +++ b/src/router/event.ts @@ -7,6 +7,7 @@ const participations = () => import("@/views/Event/ParticipantsView.vue"); const editEvent = () => import("@/views/Event/EditView.vue"); const event = () => import("@/views/Event/EventView.vue"); const myEvents = () => import("@/views/Event/MyEventsView.vue"); +const eventCalendar = () => import("@/views/Event/CalendarView.vue"); export enum EventRouteName { EVENT_LIST = "EventList", @@ -30,7 +31,7 @@ export const eventRoutes: RouteRecordRaw[] = [ { path: "/events/calendar", name: EventRouteName.EVENT_CALENDAR, - component: import("../views/Event/CalendarView.vue"), + component: eventCalendar, meta: { requiredAuth: false, },