forked from potsda.mn/mobilizon
try to fix events calendar routing
This commit is contained in:
parent
9c0c5b6e83
commit
69717f26f3
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue