2018-08-11 01:47:10 -04:00
|
|
|
<template>
|
2018-12-08 02:48:15 -05:00
|
|
|
<div class="media" :id="'index_' + anchor">
|
2018-08-11 01:47:10 -04:00
|
|
|
<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.artist }}</b></h2>
|
|
|
|
</div>
|
|
|
|
<div class="media-right">
|
2018-12-15 03:56:09 -05:00
|
|
|
<slot name="actions"></slot>
|
2018-08-11 01:47:10 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'ListItemAlbum',
|
2018-12-15 03:56:09 -05:00
|
|
|
components: {},
|
2018-08-11 01:47:10 -04:00
|
|
|
|
2018-12-08 02:48:15 -05:00
|
|
|
props: ['album', 'media_kind', 'anchor'],
|
2018-08-11 01:47:10 -04:00
|
|
|
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
show_details_modal: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
open_album: function () {
|
|
|
|
this.show_details_modal = false
|
|
|
|
if (this.media_kind === 'podcast') {
|
|
|
|
this.$router.push({ path: '/podcasts/' + this.album.id })
|
|
|
|
} else if (this.media_kind === 'audiobook') {
|
|
|
|
this.$router.push({ path: '/audiobooks/' + this.album.id })
|
|
|
|
} else {
|
|
|
|
this.$router.push({ path: '/music/albums/' + this.album.id })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|