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

feat: add default for requiredDurationSeconds in PlaylistEditor component

We don’t always have a required duration.
parent 593e7134
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
/>
<APlaylistDurationCheck
v-if="playlist && playlist.entries.length > 0"
v-if="playlist && playlist.entries.length > 0 && requiredDurationSeconds > 0"
:playlist="playlist"
:required-duration-seconds="requiredDurationSeconds"
class="tw-mb-6"
......@@ -143,12 +143,17 @@ import SaveIndicator from '@/components/generic/SaveIndicator.vue'
import APlaylistDurationCheck from '@/components/playlist/APlaylistDurationCheck.vue'
import APlaylistEntries from '@/components/playlist/APlaylistEntries.vue'
const props = defineProps<{
show: Show
requiredDurationSeconds: number
playlist: Playlist | null
useExpertMode?: boolean
}>()
const props = withDefaults(
defineProps<{
show: Show
requiredDurationSeconds?: number
playlist: Playlist | null
useExpertMode?: boolean
}>(),
{
requiredDurationSeconds: -1,
},
)
const emit = defineEmits<{
create: [Playlist]
}>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment