From 49ad1637f9c4666286fd5039db59c55b6297c6e9 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 22 Nov 2021 10:02:57 +0100 Subject: [PATCH] Set initial values for some EventMetadata elements Otherwise it fails backend validation Closes #931 Signed-off-by: Thomas Citharel --- js/src/components/Event/EventMetadataList.vue | 6 +++++- js/src/services/EventMetadata.ts | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/js/src/components/Event/EventMetadataList.vue b/js/src/components/Event/EventMetadataList.vue index a1ca63100..313fda303 100644 --- a/js/src/components/Event/EventMetadataList.vue +++ b/js/src/components/Event/EventMetadataList.vue @@ -16,6 +16,7 @@ > elem) + ); } localizedCategories: Record = { diff --git a/js/src/services/EventMetadata.ts b/js/src/services/EventMetadata.ts index 4008ebb92..6500173b9 100644 --- a/js/src/services/EventMetadata.ts +++ b/js/src/services/EventMetadata.ts @@ -14,7 +14,7 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ description: i18n.t( "Whether the event is accessible with a wheelchair" ) as string, - value: "", + value: "no", type: EventMetadataType.STRING, keyType: EventMetadataKeyType.CHOICE, choices: { @@ -29,7 +29,7 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ key: "mz:accessibility:live:subtitle", label: i18n.t("Subtitles") as string, description: i18n.t("Whether the event live video is subtitled") as string, - value: "", + value: "false", type: EventMetadataType.BOOLEAN, keyType: EventMetadataKeyType.PLAIN, choices: { @@ -47,7 +47,7 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ description: i18n.t( "Whether the event is interpreted in sign language" ) as string, - value: "", + value: "false", type: EventMetadataType.BOOLEAN, keyType: EventMetadataKeyType.PLAIN, choices: {