mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-16 09:07:38 +00:00
Resolve "Rendre le rendez-vous clicable dans la page "mes rendez-vous""
This commit is contained in:
6
.changes/unreleased/Feature-20251112-103224.yaml
Normal file
6
.changes/unreleased/Feature-20251112-103224.yaml
Normal file
@@ -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
|
||||||
@@ -108,9 +108,12 @@
|
|||||||
{{ formatDate(event.endStr, "time") }}:
|
{{ formatDate(event.endStr, "time") }}:
|
||||||
{{ event.extendedProps.locationName }}</b
|
{{ event.extendedProps.locationName }}</b
|
||||||
>
|
>
|
||||||
<b v-else-if="event.extendedProps.is === 'local'">{{
|
<a
|
||||||
event.title
|
:href="calendarLink(event.id)"
|
||||||
}}</b>
|
v-else-if="event.extendedProps.is === 'local'"
|
||||||
|
>
|
||||||
|
<b>{{ event.title }}</b>
|
||||||
|
</a>
|
||||||
<b v-else>no 'is'</b>
|
<b v-else>no 'is'</b>
|
||||||
<a
|
<a
|
||||||
v-if="event.extendedProps.is === 'range'"
|
v-if="event.extendedProps.is === 'range'"
|
||||||
@@ -486,6 +489,12 @@ function copyWeek() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const calendarLink = (calendarId: string) => {
|
||||||
|
const idStr = calendarId.match(/_(\d+)$/)?.[1];
|
||||||
|
|
||||||
|
return `/fr/calendar/calendar/${idStr}/edit`;
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
copyFromWeek.value = dateToISO(getMonday(0));
|
copyFromWeek.value = dateToISO(getMonday(0));
|
||||||
copyToWeek.value = dateToISO(getMonday(1));
|
copyToWeek.value = dateToISO(getMonday(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user