diff --git a/web-src/src/components/ModalDialogAlbumSpotify.vue b/web-src/src/components/ModalDialogAlbumSpotify.vue index 55b95667..b7423f93 100644 --- a/web-src/src/components/ModalDialogAlbumSpotify.vue +++ b/web-src/src/components/ModalDialogAlbumSpotify.vue @@ -103,13 +103,11 @@ export default { } }, - computed: { + methods: { artwork_url(album) { return album.images?.[0]?.url || '' - } - }, + }, - methods: { play() { this.$emit('close') webapi.player_play_uri(this.album.uri, false) diff --git a/web-src/src/pages/PageAlbumSpotify.vue b/web-src/src/pages/PageAlbumSpotify.vue index db071cef..bc1b2947 100644 --- a/web-src/src/pages/PageAlbumSpotify.vue +++ b/web-src/src/pages/PageAlbumSpotify.vue @@ -128,13 +128,11 @@ export default { } }, - computed: { + methods: { artwork_url(album) { return album.images?.[0]?.url || '' - } - }, + }, - methods: { open_artist() { this.$router.push({ name: 'music-spotify-artist',