Skip to content
Snippets Groups Projects
Commit 4cacc6b1 authored by onny's avatar onny
Browse files

fix subscribe/unsubscribe show

parent 37987f44
No related branches found
No related tags found
No related merge requests found
...@@ -106,8 +106,8 @@ export default { ...@@ -106,8 +106,8 @@ export default {
default: false, default: false,
}, },
dateadded: { dateadded: {
type: Boolean, type: String,
default: false, default: null,
}, },
}, },
computed: { computed: {
......
...@@ -103,10 +103,12 @@ export default { ...@@ -103,10 +103,12 @@ export default {
]), ]),
doSubscribe() { doSubscribe() {
if (this.podcast.showadded) { if (this.podcast.dateadded) {
this.removeShow(this.podcast) this.removeShow(this.podcast)
this.podcast.dateadded = null
} else { } else {
this.addShow(this.podcast) this.addShow(this.podcast)
this.podcast.dateadded = Date.now()
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment