2018-08-11 07:47:10 +02:00
|
|
|
<template>
|
|
|
|
<div class="media">
|
|
|
|
<div class="media-content fd-has-action is-clipped" v-on:click="open_playlist">
|
|
|
|
<h1 class="title is-6">{{ playlist.name }}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="media-right">
|
2018-12-15 09:56:09 +01:00
|
|
|
<slot name="actions"></slot>
|
2018-08-11 07:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-12-15 09:56:09 +01:00
|
|
|
name: 'ListItemPlaylist',
|
|
|
|
components: {},
|
2018-08-11 07:47:10 +02:00
|
|
|
|
|
|
|
props: ['playlist'],
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
open_playlist: function () {
|
|
|
|
this.show_details_modal = false
|
|
|
|
this.$router.push({ path: '/playlists/' + this.playlist.id })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|