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

View File

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