Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/src/components/story/StoryDay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<v-expansion-panel-content>
<template v-if="entriesWithStory.length">
<template v-for="{ scheduleEntry, storyChapters } in entriesWithStory">
<div v-for="chapter in storyChapters" :key="chapter._meta.self">
<div
v-for="chapter in storyChapters"
:key="scheduleEntry._meta.self + chapter._meta.self"
>
<h4 class="mt-3 mt-sm-5">
<span class="d-inline-flex align-center">
<span v-if="scheduleEntry.number" class="tabular-nums">{{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/story/StoryPeriod.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-skeleton-loader v-if="loading" class="mt-2 mt-sm-3" type="list-item-three-line" />
<v-expansion-panels v-else v-model="expandedDays" accordion flat multiple>
<story-day
<StoryDay
v-for="day in sortedDays"
:key="day._meta.self"
:day="day"
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/views/camp/Story.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<content-card :title="$tc('views.camp.story.title')" toolbar>
<template #title-actions>
<period-switcher :period="period" :route-name="'camp/period/story'" />
<PeriodSwitcher :period="period" :route-name="'camp/period/story'" />
<v-spacer />
<LockButton
v-model="editMode"
Expand All @@ -26,7 +26,7 @@
</v-list>
</v-menu>
</template>
<story-period :edit-mode="editMode" :period="period" />
<StoryPeriod :edit-mode="editMode" :period="period" />
</content-card>
</template>

Expand All @@ -38,10 +38,12 @@ import DownloadNuxtPdf from '@/components/print/print-nuxt/DownloadNuxtPdfListIt
import DownloadClientPdf from '@/components/print/print-client/DownloadClientPdfListItem.vue'
import LockButton from '@/components/generic/LockButton.vue'
import LockUnlockListItem from '@/components/generic/LockUnlockListItem.vue'
import PeriodSwitcher from '@/components/program/PeriodSwitcher.vue'

export default {
name: 'Story',
components: {
PeriodSwitcher,
StoryPeriod,
ContentCard,
DownloadClientPdf,
Expand Down
Loading