From 025a1c73a8aa4c14d9d01f6eab7a745c241c5cbe Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Sat, 3 Jun 2023 18:44:49 +0200 Subject: [PATCH] [web] Fix non-closing album modal dialog When clicking on the artist name in the album modal dialog, the dialog was not close. --- web-src/src/components/ModalDialogAlbum.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-src/src/components/ModalDialogAlbum.vue b/web-src/src/components/ModalDialogAlbum.vue index 8c6234e2..1916ba9d 100644 --- a/web-src/src/components/ModalDialogAlbum.vue +++ b/web-src/src/components/ModalDialogAlbum.vue @@ -160,6 +160,7 @@ export default { }, open_album: function () { + this.$emit('close') if (this.media_kind_resolved === 'podcast') { this.$router.push({ path: '/podcasts/' + this.album.id }) } else if (this.media_kind_resolved === 'audiobook') { @@ -170,9 +171,8 @@ export default { }, open_artist: function () { - if (this.media_kind_resolved === 'podcast') { - // No artist page for podcasts - } else if (this.media_kind_resolved === 'audiobook') { + this.$emit('close') + if (this.media_kind_resolved === 'audiobook') { this.$router.push({ path: '/audiobooks/artists/' + this.album.artist_id })