fix: Pass title on Modal instead of inject it on episodes

This commit is contained in:
Michel Roux 2024-01-13 00:11:21 +01:00
parent 3d066d63c6
commit 2a519e4543
2 changed files with 9 additions and 3 deletions

View File

@ -41,7 +41,7 @@
:image="modalEpisode.image" :image="modalEpisode.image"
:link="modalEpisode.link" :link="modalEpisode.link"
:name="modalEpisode.name" :name="modalEpisode.name"
:podcast="modalEpisode.podcast" :title="title"
:url="modalEpisode.url" /> :url="modalEpisode.url" />
</NcModal> </NcModal>
</div> </div>
@ -74,6 +74,12 @@ export default {
PlayButton, PlayButton,
StopButton, StopButton,
}, },
props: {
title: {
type: String,
required: true,
},
},
data() { data() {
return { return {
episodes: [], episodes: [],

View File

@ -12,7 +12,7 @@
<template #icon> <template #icon>
<OpenInNew :size="20" /> <OpenInNew :size="20" />
</template> </template>
{{ podcast }} {{ title }}
</NcButton> </NcButton>
<NcButton v-if="url" :href="url" target="_blank"> <NcButton v-if="url" :href="url" target="_blank">
<template #icon> <template #icon>
@ -58,7 +58,7 @@ export default {
type: String, type: String,
default: null, default: null,
}, },
podcast: { title: {
type: String, type: String,
required: true, required: true,
}, },