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_album">
|
|
|
|
<h1 class="title is-6">{{ album.name }}</h1>
|
|
|
|
<h2 class="subtitle is-7 has-text-grey"><b>{{ album.artists[0].name }}</b></h2>
|
2020-05-16 00:39:51 -04:00
|
|
|
<h2 class="subtitle is-7 has-text-grey has-text-weight-normal">({{ album.album_type }}, {{ album.release_date | time('L') }})</h2>
|
2018-08-11 01:47:10 -04:00
|
|
|
</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: 'SpotifyListItemAlbum',
|
|
|
|
|
|
|
|
props: ['album'],
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
open_album: function () {
|
|
|
|
this.$router.push({ path: '/music/spotify/albums/' + this.album.id })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|