diff --git a/src/components/Feed/Episode.vue b/src/components/Feed/Episode.vue index d6ef43e..65d71b1 100644 --- a/src/components/Feed/Episode.vue +++ b/src/components/Feed/Episode.vue @@ -33,7 +33,7 @@ @@ -34,6 +37,7 @@ export default { data: () => ({ episodes: [] as EpisodeInterface[], loading: true, + selected: [] as EpisodeInterface[], }), computed: { ...mapState(usePlayer, ['episode']), @@ -88,6 +92,13 @@ export default { methods: { hasEnded, isListening, + select(episode: EpisodeInterface) { + if (this.selected.includes(episode)) { + this.selected = this.selected.filter((e) => e !== episode) + } else { + this.selected.push(episode) + } + }, }, }