From 2c0be0af817b0286dc63a9f6d65bda8bddf7bf34 Mon Sep 17 00:00:00 2001 From: Felix Ruf Date: Wed, 7 Aug 2024 11:40:40 +0200 Subject: [PATCH] fixed broken cypress tests --- .../src/components/menuParticipants/MenuTableBody.vue | 4 ++-- .../src/components/participations/ParticipantsTableRow.vue | 5 ++++- src/Resources/src/services/useConvertDisplayName.ts | 6 +----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Resources/src/components/menuParticipants/MenuTableBody.vue b/src/Resources/src/components/menuParticipants/MenuTableBody.vue index 785453f28..117d7f81b 100644 --- a/src/Resources/src/components/menuParticipants/MenuTableBody.vue +++ b/src/Resources/src/components/menuParticipants/MenuTableBody.vue @@ -45,11 +45,11 @@ const participants = computed(() => getParticipants()); const filteredParticipants = computed(() => { if (getFilter() === '') { - return participants.value.map((participant) => getDisplayName(participant)); + return participants.value.map((participant) => getDisplayName(participant, t)); } return participants.value .filter((participant) => participant.toLowerCase().includes(getFilter().toLowerCase())) - .map((participant) => getDisplayName(participant)); + .map((participant) => getDisplayName(participant, t)); }); diff --git a/src/Resources/src/components/participations/ParticipantsTableRow.vue b/src/Resources/src/components/participations/ParticipantsTableRow.vue index 5c946fd5c..1e99bd0d0 100644 --- a/src/Resources/src/components/participations/ParticipantsTableRow.vue +++ b/src/Resources/src/components/participations/ParticipantsTableRow.vue @@ -6,7 +6,7 @@ >
- {{ getDisplayName(participantName) }} + {{ getDisplayName(participantName, t) }} string ) { if (fullname.includes('(Guest)')) { return `${fullname.split(' (Guest)')[0]} (${t('menu.guest')})`; }