From 2ea6a6779097001c425c1390f9cfc2700d407f88 Mon Sep 17 00:00:00 2001 From: Jonas Gerg Date: Tue, 14 Jul 2026 22:11:17 +0200 Subject: [PATCH] feat: show green name chips of coming ministrants above dropdown --- public/src/components/GottesdienstCard.vue | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/public/src/components/GottesdienstCard.vue b/public/src/components/GottesdienstCard.vue index 0b2a314..ce30745 100644 --- a/public/src/components/GottesdienstCard.vue +++ b/public/src/components/GottesdienstCard.vue @@ -23,6 +23,14 @@ const responseCount = computed(() => props.marks.filter(m => m.gid === props.gottesdienst.id && m.value !== 0).length ) +const comingMinistrants = computed(() => { + const miniMap = new Map(props.ministranten.map(m => [m.id, m])) + return props.marks + .filter(m => m.gid === props.gottesdienst.id && m.value === 1) + .map(m => miniMap.get(m.mid)) + .filter((m): m is SimplifiedMinistrant => !!m) +}) + const allMinistrants = computed(() => { const miniMap = new Map(props.ministranten.map(m => [m.id, m])) const marksMap = new Map(props.marks.filter(m => m.gid === props.gottesdienst.id).map(m => [m.mid, m])) @@ -160,6 +168,11 @@ function getOwnMarkHint(): string {
+
+ + {{ m.firstname }} + +