mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-24 04:20:35 -04:00
48 lines
1007 B
Vue
48 lines
1007 B
Vue
<template>
|
|
<modal-dialog-playable
|
|
:item="playable"
|
|
:show="show"
|
|
@close="$emit('close')"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import ModalDialogPlayable from '@/components/ModalDialogPlayable.vue'
|
|
|
|
export default {
|
|
name: 'ModalDialogArtistSpotify',
|
|
components: { ModalDialogPlayable },
|
|
props: { item: { required: true, type: Object }, show: Boolean },
|
|
emits: ['close'],
|
|
computed: {
|
|
playable() {
|
|
return {
|
|
name: this.item.name,
|
|
handler: this.open,
|
|
properties: [
|
|
{
|
|
label: 'property.popularity',
|
|
value: [this.item.popularity, this.item.followers?.total].join(
|
|
' / '
|
|
)
|
|
},
|
|
{
|
|
label: 'property.genres',
|
|
value: this.item.genres?.join(', ')
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
open() {
|
|
this.$emit('close')
|
|
this.$router.push({
|
|
name: 'music-spotify-artist',
|
|
params: { id: this.item.id }
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|