mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 08:45:54 -04:00
[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:
parent
8e4a3fe16a
commit
025a1c73a8
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user