mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[web] Remove useless computed property
This commit is contained in:
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user