[web] Fix non-closing album modal dialog

When clicking on the artist name in the album modal dialog, the dialog was not close.
This commit is contained in:
Alain Nussbaumer 2023-06-03 18:44:49 +02:00
parent 8e4a3fe16a
commit 025a1c73a8

View File

@ -160,6 +160,7 @@ export default {
}, },
open_album: function () { open_album: function () {
this.$emit('close')
if (this.media_kind_resolved === 'podcast') { if (this.media_kind_resolved === 'podcast') {
this.$router.push({ path: '/podcasts/' + this.album.id }) this.$router.push({ path: '/podcasts/' + this.album.id })
} else if (this.media_kind_resolved === 'audiobook') { } else if (this.media_kind_resolved === 'audiobook') {
@ -170,9 +171,8 @@ export default {
}, },
open_artist: function () { open_artist: function () {
if (this.media_kind_resolved === 'podcast') { this.$emit('close')
// No artist page for podcasts if (this.media_kind_resolved === 'audiobook') {
} else if (this.media_kind_resolved === 'audiobook') {
this.$router.push({ this.$router.push({
path: '/audiobooks/artists/' + this.album.artist_id path: '/audiobooks/artists/' + this.album.artist_id
}) })