owntone-server/web-src/src/components/ModalDialogPlaylist.vue
2025-03-15 08:20:21 +01:00

40 lines
864 B
Vue

<template>
<modal-dialog-playable
:item="playable"
:show="show"
@close="$emit('close')"
/>
</template>
<script>
import ModalDialogPlayable from '@/components/ModalDialogPlayable.vue'
export default {
name: 'ModalDialogPlaylist',
components: { ModalDialogPlayable },
props: {
item: { required: true, type: Object },
show: Boolean,
uris: { default: '', type: String }
},
emits: ['close'],
computed: {
playable() {
return {
name: this.item.name,
properties: [
{ key: 'property.tracks', value: this.item.item_count },
{
key: 'property.type',
value: this.$t(`playlist.type.${this.item.type}`)
},
{ key: 'property.path', value: this.item.path }
],
uri: this.item.uri,
uris: this.uris
}
}
}
}
</script>