mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web] Refactor the Spotify album page
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="media is-align-items-center">
|
||||
<div class="media is-align-items-center" @click="open_album">
|
||||
<div v-if="$slots['artwork']" class="media-left is-clickable">
|
||||
<slot name="artwork" />
|
||||
</div>
|
||||
@@ -23,7 +23,16 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'ListItemAlbumSpotify',
|
||||
props: { item: { required: true, type: Object } }
|
||||
props: { item: { required: true, type: Object } },
|
||||
|
||||
methods: {
|
||||
open_album() {
|
||||
this.$router.push({
|
||||
name: 'music-spotify-album',
|
||||
params: { id: this.item.id }
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user