From 09af783ee3a5488db31fe13ab56cfa6c381956df Mon Sep 17 00:00:00 2001 From: setop Date: Thu, 23 Apr 2020 00:27:09 +0200 Subject: [PATCH] add duplicate event --- js/src/components/Event/EventListCard.vue | 14 ++++++++++++++ js/src/i18n/en_US.json | 21 +++++++++++++++++++-- js/src/i18n/fr_FR.json | 21 ++++++++++++++++++++- js/src/router/event.ts | 12 ++++++++++-- js/src/views/Event/Edit.vue | 23 ++++++++++++++++------- js/src/views/Event/Event.vue | 12 ++++++++++++ js/src/views/Moderation/Logs.vue | 2 +- js/src/views/Settings/Notifications.vue | 1 - js/src/views/Settings/Preferences.vue | 1 - 9 files changed, 92 insertions(+), 15 deletions(-) diff --git a/js/src/components/Event/EventListCard.vue b/js/src/components/Event/EventListCard.vue index 6d08064d2..dd7e916d0 100644 --- a/js/src/components/Event/EventListCard.vue +++ b/js/src/components/Event/EventListCard.vue @@ -98,6 +98,20 @@ >{{ $t("Edit") }} +
  • + + {{ $t("Duplicate") }} + +
  • ({ ...route.params, ...{ isUpdate: true } }), + }, + { + path: "/events/duplicate/:eventId", + name: EventRouteName.DUPLICATE_EVENT, + component: editEvent, + meta: { requiredAuth: true }, + props: (route: Route) => ({ ...route.params, ...{ isDuplicate: true } }), }, { path: "/events/:eventId/participations", diff --git a/js/src/views/Event/Edit.vue b/js/src/views/Event/Edit.vue index fb80a45c6..c4a041b2d 100644 --- a/js/src/views/Event/Edit.vue +++ b/js/src/views/Event/Edit.vue @@ -1,8 +1,12 @@ diff --git a/js/src/views/Settings/Notifications.vue b/js/src/views/Settings/Notifications.vue index 167394088..d7053ff64 100644 --- a/js/src/views/Settings/Notifications.vue +++ b/js/src/views/Settings/Notifications.vue @@ -1,6 +1,5 @@