description
This commit is contained in:
parent
4924c090ee
commit
ad570e969b
1 changed files with 10 additions and 13 deletions
|
@ -109,20 +109,21 @@
|
|||
},
|
||||
methods: {
|
||||
getBgColor() {
|
||||
let color = `#${(this.item.attributes.artwork != null && this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : ``}`
|
||||
return color
|
||||
return `#${(this.item.attributes.artwork != null && this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : ``}`
|
||||
},
|
||||
getContextMenu(event) {
|
||||
if (this.item.type == "artists") {
|
||||
if (this.item.type === "artists") {
|
||||
return this.artistMenu(event)
|
||||
} else {
|
||||
return this.contextMenu(event)
|
||||
}
|
||||
},
|
||||
getSubtitle() {
|
||||
if (this.kind == 'card' || this.item.type == "playlists") {
|
||||
if (this.kind === 'card' || this.item.type === "playlists") {
|
||||
try {
|
||||
if (typeof this.item.attributes.artistNames != "undefined") {
|
||||
if (typeof this.item.attributes.description.standard != "undefined") {
|
||||
return this.item.attributes.description.standard
|
||||
} else if (typeof this.item.attributes.artistNames != "undefined") {
|
||||
return this.item.attributes.artistNames
|
||||
} else if (typeof this.item.attributes.editorialNotes != "undefined") {
|
||||
return this.item?.attributes?.editorialNotes?.short ?? (this.item.attributes?.editorialNotes?.name ?? '')
|
||||
|
@ -143,13 +144,9 @@
|
|||
}
|
||||
},
|
||||
getSubtitleNavigation() {
|
||||
if (this.kind == 'card' || this.item.type == "playlists") {
|
||||
if (this.kind === 'card' || this.item.type === "playlists") {
|
||||
try {
|
||||
if (typeof this.item.attributes.artistNames != "undefined") {
|
||||
return app.routeView(this.item)
|
||||
} else if (typeof this.item.attributes.editorialNotes != "undefined") {
|
||||
return app.routeView(this.item)
|
||||
} else if (typeof this.item.attributes.artistName != "undefined") {
|
||||
if (typeof this.item.attributes.artistName != "undefined") {
|
||||
return app.searchAndNavigate(this.item,'artist')
|
||||
} else {
|
||||
return app.routeView(this.item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue