[web] Remove useless computed property

This commit is contained in:
Alain Nussbaumer
2025-05-08 19:29:33 +02:00
parent b8a8899868
commit 5b29d43e5b

View File

@@ -45,11 +45,6 @@ export default {
showDetailsModal: false showDetailsModal: false
} }
}, },
computed: {
media_kind_resolved() {
return this.mediaKind || this.selectedItem.media_kind
}
},
methods: { methods: {
image(item) { image(item) {
if (this.settingsStore.showCoverArtworkInAlbumLists) { if (this.settingsStore.showCoverArtworkInAlbumLists) {
@@ -59,9 +54,10 @@ export default {
}, },
open(item) { open(item) {
this.selectedItem = item this.selectedItem = item
if (this.media_kind_resolved === 'podcast') { const mediaKind = this.mediaKind || this.selectedItem.media_kind
if (mediaKind === 'podcast') {
this.$router.push({ name: 'podcast', params: { id: item.id } }) this.$router.push({ name: 'podcast', params: { id: item.id } })
} else if (this.media_kind_resolved === 'audiobook') { } else if (mediaKind === 'audiobook') {
this.$router.push({ this.$router.push({
name: 'audiobooks-album', name: 'audiobooks-album',
params: { id: item.id } params: { id: item.id }