From 964d3cc0d600d0186ec420c9fe1fe81cca326bd6 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 13 Aug 2021 12:24:12 +0200 Subject: [PATCH] Fix event options being uneditable Signed-off-by: Thomas Citharel --- js/src/types/event.model.ts | 3 ++- js/src/views/Event/Edit.vue | 51 ++++++++++++++++++++++++------------- 2 files changed, 36 insertions(+), 18 deletions(-) diff --git a/js/src/types/event.model.ts b/js/src/types/event.model.ts index c724e0aa3..85bfd22a3 100644 --- a/js/src/types/event.model.ts +++ b/js/src/types/event.model.ts @@ -207,7 +207,8 @@ export class EventModel implements IEvent { } } -function removeTypeName(entity: any): any { +// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types +export function removeTypeName(entity: any): any { if (entity?.__typename) { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { __typename, ...purgedEntity } = entity; diff --git a/js/src/views/Event/Edit.vue b/js/src/views/Event/Edit.vue index 8cb7fdffc..d8602039c 100644 --- a/js/src/views/Event/Edit.vue +++ b/js/src/views/Event/Edit.vue @@ -161,7 +161,7 @@ v-if="config && config.anonymous.participation.allowed" > - + {{ $t("I want to allow people to participate without an account.") }} @@ -200,18 +200,18 @@ @@ -221,7 +221,7 @@
{{ $t("Allow all comments from users with accounts") }} - + @@ -238,7 +238,7 @@
{{ $t("Close comments for all (except for admins)") }}