Prepare front to edit events

This commit is contained in:
Chocobozzz
2019-09-02 14:35:50 +02:00
parent 57f839c17a
commit 2cfb777a9d
10 changed files with 213 additions and 145 deletions

View File

@@ -3,7 +3,7 @@ import Location from '@/views/Location.vue';
import { RouteConfig } from 'vue-router';
// tslint:disable:space-in-parens
const createEvent = () => import(/* webpackChunkName: "create-event" */ '@/views/Event/Create.vue');
const editEvent = () => import(/* webpackChunkName: "create-event" */ '@/views/Event/Edit.vue');
const event = () => import(/* webpackChunkName: "event" */ '@/views/Event/Event.vue');
// tslint:enable
@@ -25,15 +25,15 @@ export const eventRoutes: RouteConfig[] = [
{
path: '/events/create',
name: EventRouteName.CREATE_EVENT,
component: createEvent,
component: editEvent,
meta: { requiredAuth: true },
},
{
path: '/events/:id/edit',
path: '/events/edit/:eventId',
name: EventRouteName.EDIT_EVENT,
component: createEvent,
props: true,
component: editEvent,
meta: { requiredAuth: true },
props: { isUpdate: true },
},
{
path: '/location/new',