diff --git a/frontend/src/components/Calendar/CalendarEventPanel.vue b/frontend/src/components/Calendar/CalendarEventPanel.vue
index a308de98..d716ab6a 100644
--- a/frontend/src/components/Calendar/CalendarEventPanel.vue
+++ b/frontend/src/components/Calendar/CalendarEventPanel.vue
@@ -89,7 +89,7 @@
{{ __('{0} Attendees', [peoples.length + 1]) }}
-
{
const eventTitle = ref(null)
const error = ref(null)
+const showAllParticipants = ref(false)
const oldEvent = ref(null)
const dirty = computed(() => {
return JSON.stringify(oldEvent.value) !== JSON.stringify(_event.value)
})
+const displayedPeoples = computed(() => {
+ if (showAllParticipants.value) return peoples.value
+ return peoples.value.slice(0, 2)
+})
+
watch(
[() => props.mode, () => props.event],
() => {
@@ -458,6 +480,7 @@ function fetchEvent() {
_event.value = props.event
oldEvent.value = { ...props.event }
}
+ showAllParticipants.value = false
}
function parseEvent(_e) {