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 }} + +