mirror of
https://github.com/owntone/owntone-server.git
synced 2025-10-29 15:55:02 -04:00
[web] Display artist visuals from Spotify
This commit is contained in:
parent
2d5dd3d7fd
commit
f7c4659899
@ -3,6 +3,7 @@
|
||||
v-for="item in items"
|
||||
:key="item.id"
|
||||
:is-item="true"
|
||||
:image="image(item)"
|
||||
:index="item.index"
|
||||
:lines="[item.name]"
|
||||
@open="open(item)"
|
||||
@ -32,6 +33,9 @@ export default {
|
||||
return { selectedItem: {}, showDetailsModal: false }
|
||||
},
|
||||
methods: {
|
||||
image(item) {
|
||||
return { caption: item.name, url: item.images?.[0]?.url }
|
||||
},
|
||||
open(item) {
|
||||
this.$router.push({
|
||||
name: 'music-spotify-artist',
|
||||
|
||||
@ -17,7 +17,7 @@ export default {
|
||||
computed: {
|
||||
playable() {
|
||||
return {
|
||||
image: this.item?.images?.[0]?.url || '',
|
||||
image: this.item.images?.[0]?.url || '',
|
||||
name: this.item.name || '',
|
||||
properties: [
|
||||
{
|
||||
|
||||
@ -17,6 +17,7 @@ export default {
|
||||
computed: {
|
||||
playable() {
|
||||
return {
|
||||
image: this.item.images?.[0]?.url || '',
|
||||
name: this.item.name,
|
||||
properties: [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user