mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-25 12:29:18 -05:00
[web] Reorder methods
This commit is contained in:
parent
5d3fa4e087
commit
00343cfa91
@ -180,16 +180,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
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() {
|
open_album() {
|
||||||
if (this.item.data_kind === 'spotify') {
|
if (this.item.data_kind === 'spotify') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
@ -242,6 +232,16 @@ export default {
|
|||||||
params: { name: this.item.genre },
|
params: { name: this.item.genre },
|
||||||
query: { media_kind: this.item.media_kind }
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user