From a5a86a5e1be08cf9123ee7ad0979974bc2be1cb4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 20 Jun 2023 12:09:47 +0200 Subject: [PATCH] fix(front): add missing title to Participants View page Signed-off-by: Thomas Citharel --- js/src/i18n/en_US.json | 5 ++++- js/src/i18n/fr_FR.json | 5 ++++- js/src/views/Event/ParticipantsView.vue | 7 +++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 4b4b6101..c78839b8 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -1564,5 +1564,8 @@ "No apps authorized yet": "No apps authorized yet", "You have been logged-out": "You have been logged-out", "An “application programming interface” or “API” is a communication protocol that allows software components to communicate with each other. The Mobilizon API, for example, can allow third-party software tools to communicate with Mobilizon instances to carry out certain actions, such as posting events on your behalf, automatically and remotely.": "An “application programming interface” or “API” is a communication protocol that allows software components to communicate with each other. The Mobilizon API, for example, can allow third-party software tools to communicate with Mobilizon instances to carry out certain actions, such as posting events on your behalf, automatically and remotely.", - "Announcements": "Announcements" + "Announcements": "Announcements", + "Application authorized": "Application authorized", + "Check your device to continue. You may now close this window.": "Check your device to continue. You may now close this window.", + "Participants to {eventTitle}": "Participants to {eventTitle}" } \ No newline at end of file diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 52327f25..5a4fdaf0 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1560,5 +1560,8 @@ "{username} was invited to {group}": "{username} a été invité à {group}", "{user}'s follow request was accepted": "La demande de suivi de {user} a été acceptée", "{user}'s follow request was rejected": "La demande de suivi de {user} a été rejetée", - "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap" + "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap", + "Application authorized": "Application autorisée", + "Check your device to continue. You may now close this window.": "Vérifiez votre appareil pour continuer. Vous pouvez maintenant fermer cette fenêtre.", + "Participants to {eventTitle}": "Participant·es à {eventTitle}" } diff --git a/js/src/views/Event/ParticipantsView.vue b/js/src/views/Event/ParticipantsView.vue index 821fcdb6..20bc3978 100644 --- a/js/src/views/Event/ParticipantsView.vue +++ b/js/src/views/Event/ParticipantsView.vue @@ -284,6 +284,7 @@ import Incognito from "vue-material-design-icons/Incognito.vue"; import EmptyContent from "@/components/Utils/EmptyContent.vue"; import { Notifier } from "@/plugins/notifier"; import Tag from "@/components/TagElement.vue"; +import { useHead } from "@vueuse/head"; const PARTICIPANTS_PER_PAGE = 10; const MESSAGE_ELLIPSIS_LENGTH = 130; @@ -458,6 +459,12 @@ const toggleQueueDetails = (row: IParticipant): void => { }; const openDetailedRows = ref>({}); + +useHead({ + title: computed(() => + t("Participants to {eventTitle}", { eventTitle: event.value?.title }) + ), +});