2018-08-11 01:47:10 -04: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>
|
|
|
|
<h2 class="subtitle is-7">{{ playlist.owner.display_name }}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="media-right">
|
2018-12-17 05:52:09 -05:00
|
|
|
<slot name="actions"></slot>
|
2018-08-11 01:47:10 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'SpotifyListItemPlaylist',
|
|
|
|
props: ['playlist'],
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
open_playlist: function () {
|
2018-10-26 14:10:52 -04:00
|
|
|
this.$router.push({ path: '/music/spotify/playlists/' + this.playlist.id })
|
2018-08-11 01:47:10 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|