From fccd29e3c7d945a4c2f86e64c0ca96ec9c959033 Mon Sep 17 00:00:00 2001 From: LenaertsJ Date: Fri, 14 Nov 2025 14:08:03 +0000 Subject: [PATCH] Resolve "Rendre le rendez-vous clicable dans la page "mes rendez-vous"" --- .changes/unreleased/Feature-20251112-103224.yaml | 6 ++++++ .../public/vuejs/MyCalendarRange/App2.vue | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .changes/unreleased/Feature-20251112-103224.yaml diff --git a/.changes/unreleased/Feature-20251112-103224.yaml b/.changes/unreleased/Feature-20251112-103224.yaml new file mode 100644 index 000000000..44a7d4c60 --- /dev/null +++ b/.changes/unreleased/Feature-20251112-103224.yaml @@ -0,0 +1,6 @@ +kind: Feature +body: Make a calendar item on the 'mes rendez-vous' page clickable. Clicking will navigate to the edit page of the calendar item. +time: 2025-11-12T10:32:24.916576945+01:00 +custom: + Issue: "461" + SchemaChange: No schema change diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue index 6e3d5b61c..40c3200b9 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue +++ b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue @@ -108,9 +108,12 @@ {{ formatDate(event.endStr, "time") }}: {{ event.extendedProps.locationName }} - {{ - event.title - }} + + {{ event.title }} + no 'is' { + const idStr = calendarId.match(/_(\d+)$/)?.[1]; + + return `/fr/calendar/calendar/${idStr}/edit`; +}; + onMounted(() => { copyFromWeek.value = dateToISO(getMonday(0)); copyToWeek.value = dateToISO(getMonday(1));