2018-08-11 01:47:10 -04:00
|
|
|
<template>
|
|
|
|
<div class="media">
|
2022-02-19 00:39:14 -05:00
|
|
|
<div class="media-content fd-has-action is-clipped" @click="open_playlist">
|
|
|
|
<h1 class="title is-6">
|
|
|
|
{{ playlist.name }}
|
|
|
|
</h1>
|
|
|
|
<h2 class="subtitle is-7">
|
|
|
|
{{ playlist.owner.display_name }}
|
|
|
|
</h2>
|
2018-08-11 01:47:10 -04:00
|
|
|
</div>
|
|
|
|
<div class="media-right">
|
2022-02-19 00:39:14 -05:00
|
|
|
<slot name="actions" />
|
2018-08-11 01:47:10 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'SpotifyListItemPlaylist',
|
|
|
|
props: ['playlist'],
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
open_playlist: function () {
|
2022-02-19 00:39:14 -05:00
|
|
|
this.$router.push({
|
|
|
|
path: '/music/spotify/playlists/' + this.playlist.id
|
|
|
|
})
|
2018-08-11 01:47:10 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-19 00:39:14 -05:00
|
|
|
<style></style>
|