Skip to content

Commit

Permalink
[web] Reorder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hacketiwack committed Dec 9, 2023
1 parent 5d3fa4e commit 00343cf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions web-src/src/components/ModalDialogQueueItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 00343cf

Please sign in to comment.