[web-src] Use kebap-case for events

Otherwise ESLint will report errors
This commit is contained in:
chme
2020-10-18 09:42:00 +02:00
parent 3b5e08331b
commit d6d6e93c3b
5 changed files with 9 additions and 9 deletions

View File

@@ -60,7 +60,7 @@ export default {
this.loading = true
webapi.library_add(this.url).then(() => {
this.$emit('close')
this.$emit('podcast_added')
this.$emit('podcast-added')
this.url = ''
}).catch(() => {
this.loading = false

View File

@@ -131,7 +131,7 @@ export default {
mark_played: function () {
webapi.library_album_track_update(this.album.id, { play_count: 'played' }).then(({ data }) => {
this.$emit('play_count_changed')
this.$emit('play-count-changed')
this.$emit('close')
})
},

View File

@@ -158,14 +158,14 @@ export default {
mark_new: function () {
webapi.library_track_update(this.track.id, { play_count: 'reset' }).then(() => {
this.$emit('play_count_changed')
this.$emit('play-count-changed')
this.$emit('close')
})
},
mark_played: function () {
webapi.library_track_update(this.track.id, { play_count: 'increment' }).then(() => {
this.$emit('play_count_changed')
this.$emit('play-count-changed')
this.$emit('close')
})
}