[web-src] Add buttons to mark podcast track as new/played

This commit is contained in:
chme
2019-01-29 17:50:47 +01:00
parent 78ca795814
commit 52d685d6be
4 changed files with 30 additions and 6 deletions

View File

@@ -132,13 +132,17 @@ export default {
},
mark_new: function () {
this.$emit('close')
// TODO
webapi.library_track_update(this.track.id, { 'play_count': 'reset' }).then(() => {
this.$emit('play_count_changed')
this.$emit('close')
})
},
mark_played: function () {
this.$emit('close')
// TODO
webapi.library_track_update(this.track.id, { 'play_count': 'increment' }).then(() => {
this.$emit('play_count_changed')
this.$emit('close')
})
}
}
}