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

26 lines
510 B
Vue
Raw Normal View History

<template>
<div class="media">
<div class="media-content fd-has-action is-clipped" @click="open_artist">
2022-05-20 07:44:22 -04:00
<h1 class="title is-6" v-text="artist.name" />
</div>
<div class="media-right">
<slot name="actions" />
</div>
</div>
</template>
<script>
export default {
name: 'SpotifyListItemArtist',
props: ['artist'],
methods: {
open_artist: function () {
this.$router.push({ path: '/music/spotify/artists/' + this.artist.id })
}
}
}
</script>
<style></style>