Hide empty crew list in EventCard

It used to be that the assigned property was not present for clients who
are not crew, but this changed with the client state refactor.  It makes
more sense to only show the crew field if there are any crew present.
This commit is contained in:
Hornwitser 2025-07-16 19:02:55 +02:00
parent 4ff3dcb3fe
commit 085e348aa8

View file

@ -35,7 +35,7 @@
<template v-if="slot.interested">
({{ slot.interested }} interested)
</template>
<p v-if="slot.assigned">
<p v-if="slot.assigned.size">
Crew:
{{ [...slot.assigned].map(id => usersStore.users.get(id)?.name).join(", ") }}
</p>