owntone-server/web-src/src/components/SpotifyListItemArtist.vue
Alain Nussbaumer 845f111c29 [web] Use named route for Spotify pages
Switching to named routes in order to reduce future maintenance.
2023-07-12 21:30:52 +02:00

29 lines
554 B
Vue

<template>
<div class="media is-align-items-center">
<div class="media-content is-clickable is-clipped" @click="open_artist">
<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() {
this.$router.push({
name: 'music-spotify-artist',
params: { id: this.artist.id }
})
}
}
}
</script>
<style></style>