owntone-server/web-src/src/components/SpotifyListItemAlbum.vue

27 lines
710 B
Vue
Raw Normal View History

2022-02-19 00:18:01 -05:00
<template>
<div class="media">
<div class="media-left fd-has-action"
2022-02-19 00:18:01 -05:00
v-if="$slots['artwork']">
<slot name="artwork"></slot>
</div>
2022-02-19 00:18:01 -05:00
<div class="media-content fd-has-action is-clipped">
<h1 class="title is-6">{{ album.name }}</h1>
<h2 class="subtitle is-7 has-text-grey"><b>{{ album.artists[0].name }}</b></h2>
<h2 class="subtitle is-7 has-text-grey has-text-weight-normal">({{ album.album_type }}, {{ $filters.time(album.release_date, 'L') }})</h2>
</div>
<div class="media-right">
<slot name="actions"></slot>
</div>
</div>
</template>
<script>
export default {
name: 'SpotifyListItemAlbum',
props: ['album']
}
</script>
<style>
</style>