mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
[web-src] Cleanup ListItemQueue and ModalDialogAlbum
This commit is contained in:
parent
8f391ecd6a
commit
6e61c703be
@ -20,16 +20,8 @@ import webapi from '@/webapi'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ListItemQueueItem',
|
name: 'ListItemQueueItem',
|
||||||
components: {},
|
|
||||||
|
|
||||||
props: ['item', 'position', 'current_position', 'show_only_next_items', 'edit_mode'],
|
props: ['item', 'position', 'current_position', 'show_only_next_items', 'edit_mode'],
|
||||||
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
show_details_modal: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
state () {
|
state () {
|
||||||
return this.$store.state.player
|
return this.$store.state.player
|
||||||
@ -42,7 +34,6 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
play: function () {
|
play: function () {
|
||||||
this.show_details_modal = false
|
|
||||||
webapi.player_play({ 'item_id': this.item.id })
|
webapi.player_play({ 'item_id': this.item.id })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
open_album: function () {
|
open_album: function () {
|
||||||
this.show_details_modal = false
|
|
||||||
if (this.media_kind === 'podcast') {
|
if (this.media_kind === 'podcast') {
|
||||||
this.$router.push({ path: '/podcasts/' + this.album.id })
|
this.$router.push({ path: '/podcasts/' + this.album.id })
|
||||||
} else if (this.media_kind === 'audiobook') {
|
} else if (this.media_kind === 'audiobook') {
|
||||||
@ -100,7 +99,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
open_artist: function () {
|
open_artist: function () {
|
||||||
this.show_details_modal = false
|
|
||||||
this.$router.push({ path: '/music/artists/' + this.album.artist_id })
|
this.$router.push({ path: '/music/artists/' + this.album.artist_id })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user