diff --git a/web-src/src/components/ModalDialogQueueItem.vue b/web-src/src/components/ModalDialogQueueItem.vue index b46cb5be..72543e40 100644 --- a/web-src/src/components/ModalDialogQueueItem.vue +++ b/web-src/src/components/ModalDialogQueueItem.vue @@ -15,11 +15,11 @@

Album - {{ item.album }} + {{ item.album }}

Album artist - {{ item.album_artist }} + {{ item.album_artist }}

Composer @@ -31,7 +31,7 @@

Genre - {{ item.genre }} + {{ item.genre }}

Track / Disc @@ -79,6 +79,24 @@ export default { play: function () { this.$emit('close') webapi.player_play({ 'item_id': this.item.id }) + }, + + open_album: function () { + if (this.media_kind === 'podcast') { + this.$router.push({ path: '/podcasts/' + this.item.album_id }) + } else if (this.media_kind === 'audiobook') { + this.$router.push({ path: '/audiobooks/' + this.item.album_id }) + } else { + this.$router.push({ path: '/music/albums/' + this.item.album_id }) + } + }, + + open_album_artist: function () { + this.$router.push({ path: '/music/artists/' + this.item.albumartist_id }) + }, + + open_genre: function () { + this.$router.push({ path: '/music/genres/' + this.item.genre }) } } }