owntone-server/web-src/src/components/ListItemArtistSpotify.vue
Alain Nussbaumer 9d62c94d86 [web] Fix modal dialogs not closing when opening artist or album page and renaming of views
Whenever an artist or album page is opened from a modal dialog, the latter is properly closed. Moreover, the views have been renamed for better maintainability.
2023-07-18 15:19:24 +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: 'ListItemArtistSpotify',
props: ['artist'],
methods: {
open_artist() {
this.$router.push({
name: 'music-spotify-artist',
params: { id: this.artist.id }
})
}
}
}
</script>
<style></style>