[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 this.loading = true
webapi.library_add(this.url).then(() => { webapi.library_add(this.url).then(() => {
this.$emit('close') this.$emit('close')
this.$emit('podcast_added') this.$emit('podcast-added')
this.url = '' this.url = ''
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false

View File

@ -131,7 +131,7 @@ export default {
mark_played: function () { mark_played: function () {
webapi.library_album_track_update(this.album.id, { play_count: 'played' }).then(({ data }) => { 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') this.$emit('close')
}) })
}, },

View File

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

View File

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

View File

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