select all episodes (fix #81) #220
@ -151,8 +151,8 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
episode() {
|
episode() {
|
||||||
if (this.episode) {
|
if (this.episode) {
|
||||||
this.episodes = this.episodes.map((e) =>
|
this.episodes = this.episodes.map((episode) =>
|
||||||
e.url === this.episode?.url ? this.episode : e,
|
episode.url === this.episode?.url ? this.episode : episode,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -189,7 +189,9 @@ export default {
|
|||||||
)
|
)
|
||||||
await axios.post(
|
await axios.post(
|
||||||
generateUrl('/apps/gpoddersync/episode_action/create'),
|
generateUrl('/apps/gpoddersync/episode_action/create'),
|
||||||
this.episodes.filter((e) => e.selected).map((e) => e.action),
|
this.episodes
|
||||||
|
.filter((episode) => episode.selected)
|
||||||
|
.map((episode) => episode.action),
|
||||||
)
|
)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user