[web] Reorder methods

This commit is contained in:
Alain Nussbaumer 2023-12-09 22:02:11 +01:00
parent 5d3fa4e087
commit 00343cfa91

View File

@ -180,16 +180,6 @@ export default {
},
methods: {
remove() {
this.$emit('close')
webapi.queue_remove(this.item.id)
},
play() {
this.$emit('close')
webapi.player_play({ item_id: this.item.id })
},
open_album() {
if (this.item.data_kind === 'spotify') {
this.$router.push({
@ -242,6 +232,16 @@ export default {
params: { name: this.item.genre },
query: { media_kind: this.item.media_kind }
})
},
play() {
this.$emit('close')
webapi.player_play({ item_id: this.item.id })
},
remove() {
this.$emit('close')
webapi.queue_remove(this.item.id)
}
}
}