mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-18 21:18:57 -04:00
40 lines
864 B
Vue
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>
|