mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-16 00:58:18 -04:00
46 lines
997 B
Vue
46 lines
997 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 {
|
|
handler: this.open,
|
|
name: this.item.name,
|
|
properties: [
|
|
{
|
|
key: 'property.popularity',
|
|
value: [this.item.popularity, this.item.followers?.total].join(
|
|
' / '
|
|
)
|
|
},
|
|
{ key: 'property.genres', value: this.item.genres?.join(', ') }
|
|
],
|
|
uri: this.item.uri
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
open() {
|
|
this.$emit('close')
|
|
this.$router.push({
|
|
name: 'music-spotify-artist',
|
|
params: { id: this.item.id }
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|