[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')
})
}

View File

@ -40,14 +40,14 @@
:show="show_details_modal"
:track="selected_track"
@close="show_details_modal = false"
@play_count_changed="reload_tracks" />
@play-count-changed="reload_tracks" />
<modal-dialog-album
:show="show_album_details_modal"
:album="album"
:media_kind="'podcast'"
:new_tracks="new_tracks"
@close="show_album_details_modal = false"
@play_count_changed="reload_tracks"
@play-count-changed="reload_tracks"
@remove_podcast="open_remove_podcast_dialog" />
<modal-dialog
:show="show_remove_podcast_modal"

View File

@ -32,7 +32,7 @@
</a>
</template>
</list-item-track>
<modal-dialog-track :show="show_track_details_modal" :track="selected_track" @close="show_track_details_modal = false" @play_count_changed="reload_new_episodes" />
<modal-dialog-track :show="show_track_details_modal" :track="selected_track" @close="show_track_details_modal = false" @play-count-changed="reload_new_episodes" />
</template>
</content-with-heading>
@ -53,13 +53,13 @@
</template>
<template slot="content">
<list-albums :albums="albums.items"
@play_count_changed="reload_new_episodes()"
@play-count-changed="reload_new_episodes()"
@podcast-deleted="reload_podcasts()">
</list-albums>
<modal-dialog-add-rss
:show="show_url_modal"
@close="show_url_modal = false"
@podcast_added="reload_podcasts()" />
@podcast-added="reload_podcasts()" />
</template>
</content-with-heading>
</div>