fix: Pass title on Modal instead of inject it on episodes
This commit is contained in:
parent
3d066d63c6
commit
2a519e4543
@ -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: [],
|
||||||
|
@ -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,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user