mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-16 17:10:03 -04:00
This reverts commit bb2a778b46afca0fcd56bda6f02857fad78b14d8, reversing changes made to f8e2298b677476f46eb67cc4331c18124f92a791.
51 lines
1.3 KiB
Vue
51 lines
1.3 KiB
Vue
<template>
|
|
<template v-for="item in items" :key="item.id">
|
|
<div class="media is-align-items-center">
|
|
<div class="media-content is-clickable is-clipped" @click="open(item)">
|
|
<h1 class="title is-6" v-text="item.name" />
|
|
<h2 class="subtitle is-7" v-text="item.owner.display_name" />
|
|
</div>
|
|
<div class="media-right">
|
|
<a @click.prevent.stop="open_dialog(item)">
|
|
<mdicon class="icon has-text-dark" name="dots-vertical" size="16" />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<teleport to="#app">
|
|
<modal-dialog-playlist-spotify
|
|
:item="selected_item"
|
|
:show="show_details_modal"
|
|
@close="show_details_modal = false"
|
|
/>
|
|
</teleport>
|
|
</template>
|
|
|
|
<script>
|
|
import ModalDialogPlaylistSpotify from '@/components/ModalDialogPlaylistSpotify.vue'
|
|
|
|
export default {
|
|
name: 'ListPlaylistsSpotify',
|
|
components: {
|
|
ModalDialogPlaylistSpotify
|
|
},
|
|
props: { items: { required: true, type: Object } },
|
|
|
|
data() {
|
|
return { selected_item: {}, show_details_modal: false }
|
|
},
|
|
|
|
methods: {
|
|
open(item) {
|
|
this.$router.push({ name: 'playlist-spotify', params: { id: item.id } })
|
|
},
|
|
open_dialog(item) {
|
|
this.selected_item = item
|
|
this.show_details_modal = true
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style></style>
|