feat: show number of checks
All checks were successful
Deploy Miniplan / build (push) Successful in 1m24s
All checks were successful
Deploy Miniplan / build (push) Successful in 1m24s
This commit is contained in:
parent
97c6beb4e1
commit
fb16acc984
@ -115,6 +115,10 @@ function toggleEditMinistrant(mini: SimplifiedMinistrant) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function getAmount(mid: number, value: number): number {
|
||||
return props.marks.filter(m => m.mid == mid && m.value == value).length
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -157,12 +161,18 @@ function toggleEditMinistrant(mini: SimplifiedMinistrant) {
|
||||
<tr v-for="mini in props.ministranten" class="ministrant" :class="getMinistrantClasses(mini)">
|
||||
<td class="name">
|
||||
<div class="center">
|
||||
<i class="edit-button no-print"
|
||||
v-if="edit"
|
||||
style="margin-right: 10px; font-size: 18px"
|
||||
@click="$emit('editMinistrant', mini.id)">edit</i>
|
||||
{{ mini.firstname }}
|
||||
{{ mini.lastname }}
|
||||
<div style="width: 100%;">
|
||||
<i class="edit-button no-print"
|
||||
v-if="edit"
|
||||
style="margin-right: 10px; font-size: 18px"
|
||||
@click="$emit('editMinistrant', mini.id)">edit</i>
|
||||
{{ mini.firstname }}
|
||||
{{ mini.lastname }}
|
||||
</div>
|
||||
<div style="flex-shrink: 0" v-if="edit">
|
||||
{{getAmount(mini.id, 1)}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td
|
||||
|
||||
Loading…
Reference in New Issue
Block a user