Add cards for shifts
This commit is contained in:
parent
afd7aeea04
commit
9299fa2682
2 changed files with 67 additions and 1 deletions
|
@ -42,7 +42,19 @@
|
|||
</label>
|
||||
<Timetable :schedule :eventSlotFilter :shiftSlotFilter />
|
||||
<h2>Events</h2>
|
||||
<CardEvent v-for="event in [...schedule.events.values()].filter(e => !e.deleted && [...e.slots.values()].some(eventSlotFilter))" :event/>
|
||||
<CardEvent
|
||||
v-for="event in [...schedule.events.values()].filter(e => !e.deleted && [...e.slots.values()].some(eventSlotFilter))"
|
||||
:key="event.id"
|
||||
:event
|
||||
/>
|
||||
<template v-if="accountStore.isCrew">
|
||||
<h2>Shifts</h2>
|
||||
<CardShift
|
||||
v-for="shift in [...schedule.shifts.values()].filter(s => !s.deleted && [...s.slots.values()].some(shiftSlotFilter))"
|
||||
:key="shift.id"
|
||||
:shift
|
||||
/>
|
||||
</template>
|
||||
<h2>Locations</h2>
|
||||
<ul>
|
||||
<li v-for="location in schedule.locations.values()" :key="location.id">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue