From 44b2b9fdbf676be7829c63c2a2cd94bcdf8d0f09 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Tue, 17 Mar 2026 00:30:42 +0100 Subject: [PATCH] feat(DiaryParticipantsPanel): add gallery button and loading state - Introduced a new button in the DiaryParticipantsPanel for opening the gallery, with a loading state to indicate when the gallery is being created. - Added a new `galleryLoading` property to manage the button's disabled state and text dynamically. - Enhanced the layout of the participant toolbar for better user experience. --- .../src/components/DiaryParticipantsPanel.vue | 37 ++++++++++++++++++- frontend/src/views/DiaryView.vue | 9 +---- 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/DiaryParticipantsPanel.vue b/frontend/src/components/DiaryParticipantsPanel.vue index d498dd56..acf8e6db 100644 --- a/frontend/src/components/DiaryParticipantsPanel.vue +++ b/frontend/src/components/DiaryParticipantsPanel.vue @@ -2,6 +2,16 @@

{{ $t('diary.participants') }} ({{ participants.length }})

+
+ +
@@ -122,6 +137,26 @@ export default { margin-bottom: 0.85rem; } +.participant-toolbar-actions { + display: flex; + justify-content: flex-end; +} + +.participant-gallery-button { + padding: 0.45rem 0.75rem; + border: 1px solid #ccd8e0; + border-radius: 8px; + background: #f3f7fa; + color: #365266; + font-weight: 600; + cursor: pointer; +} + +.participant-gallery-button:disabled { + opacity: 0.6; + cursor: default; +} + .participant-search-input { width: 100%; padding: 0.55rem 0.7rem; diff --git a/frontend/src/views/DiaryView.vue b/frontend/src/views/DiaryView.vue index 840053ca..65421cda 100644 --- a/frontend/src/views/DiaryView.vue +++ b/frontend/src/views/DiaryView.vue @@ -12,13 +12,6 @@ @click="deleteCurrentDate">{{ $t('diary.deleteDate') }} -
@@ -631,6 +624,7 @@ v-show="!isMobileView || activeTab === 'members'" :members="filteredDiaryMembers" :participants="participants" + :gallery-loading="galleryLoading" :participant-search-query="participantSearchQuery" :participant-filter="participantFilter" :groups="groups" @@ -644,6 +638,7 @@ @mark-form="markFormHandedOver" @open-tags="openTagInfos" @open-quick-add="openQuickAddDialog" + @open-gallery="openGalleryDialog" />