[web] Display artist visuals from Spotify

This commit is contained in:
Alain Nussbaumer 2025-08-17 20:36:06 +10:00
parent 2d5dd3d7fd
commit f7c4659899
3 changed files with 6 additions and 1 deletions

View File

@ -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',

View File

@ -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: [
{

View File

@ -17,6 +17,7 @@ export default {
computed: {
playable() {
return {
image: this.item.images?.[0]?.url || '',
name: this.item.name,
properties: [
{