diff --git a/web-src/src/pages/PageArtist.vue b/web-src/src/pages/PageArtist.vue index a8717051..1e651ec9 100644 --- a/web-src/src/pages/PageArtist.vue +++ b/web-src/src/pages/PageArtist.vue @@ -3,6 +3,14 @@ {{ artist.name }} + + + + + + Play + + {{ artist.album_count }} albums | {{ artist.track_count }} tracks @@ -45,6 +53,14 @@ export default { methods: { open_tracks: function () { this.$router.push({ path: '/music/artists/' + this.artist.id + '/tracks' }) + }, + + play: function () { + webapi.queue_clear().then(() => + webapi.queue_add(this.albums.items.map(a => a.uri).join(',')).then(() => + webapi.player_play() + ) + ) } } }
{{ artist.name }}
{{ artist.album_count }} albums | {{ artist.track_count }} tracks