2018-08-11 01:47:10 -04:00
|
|
|
<template>
|
|
|
|
<div class="media">
|
|
|
|
<div class="media-content fd-has-action is-clipped" v-on:click="play">
|
|
|
|
<h1 class="title is-6">{{ track.name }}</h1>
|
|
|
|
<h2 class="subtitle is-7 has-text-grey"><b>{{ track.artists[0].name }}</b></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>
|
|
|
|
import webapi from '@/webapi'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'SpotifyListItemTrack',
|
|
|
|
|
|
|
|
props: ['track', 'position', 'album', 'context_uri'],
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
play: function () {
|
2018-11-06 15:44:01 -05:00
|
|
|
webapi.player_play_uri(this.context_uri, false, this.position)
|
2018-08-11 01:47:10 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|