Skip to content
Snippets Groups Projects
Commit b8659228 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: force schedule collapsible open if number of schedule is small

parent f9dc6fef
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
<Collapse
id="schedule-collapsable"
v-model:is-collapsed="isCollapsed"
:is-collapsed="collapseSchedules ? isCollapsed : false"
class="tw-mb-12"
peek="10rem"
>
......@@ -112,7 +112,7 @@ const selectedShow = useSelectedShow()
const schedules = computed<Schedule[]>(() => store.state.shows.schedules)
const relevantSchedules = computed(() => schedules.value.filter((s) => !isPossiblyPastSchedule(s)))
const collapseSchedules = computed(() => relevantSchedules.value.length > 2)
const isCollapsed = ref(!collapseSchedules.value)
const isCollapsed = ref(true)
function isPossiblyPastSchedule(schedule: Schedule) {
// Recurrence rules get very complex very fast, so we only give
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment