From 2057d8cf0a829b29867e2fba2efab8b868887207 Mon Sep 17 00:00:00 2001 From: whatdoineed2do/Ray Date: Mon, 26 Oct 2020 11:05:26 +0000 Subject: [PATCH] [web-src] random playlist playlist modal fix the 'uris' is passed from page/PagePlaylist.vue to handle a dynamic 'random' smartpl playlist - we cannot add via 'playlist.uri' because when it will ask the server for that uri it will generate another set of tracks, different to the ones on display of the playlist page --- web-src/src/components/ModalDialogPlaylist.vue | 8 ++++---- web-src/src/pages/PagePlaylist.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web-src/src/components/ModalDialogPlaylist.vue b/web-src/src/components/ModalDialogPlaylist.vue index 7ed5b522..65e35ed5 100644 --- a/web-src/src/components/ModalDialogPlaylist.vue +++ b/web-src/src/components/ModalDialogPlaylist.vue @@ -44,22 +44,22 @@ import webapi from '@/webapi' export default { name: 'ModalDialogPlaylist', - props: ['show', 'playlist', 'tracks'], + props: ['show', 'playlist', 'uris'], methods: { play: function () { this.$emit('close') - webapi.player_play_uri(this.playlist.uri, false) + webapi.player_play_uri(this.uris ? this.uris : this.playlist.uri, false) }, queue_add: function () { this.$emit('close') - webapi.queue_add(this.playlist.uri) + webapi.queue_add(this.uris ? this.uris : this.playlist.uri) }, queue_add_next: function () { this.$emit('close') - webapi.queue_add_next(this.playlist.uri) + webapi.queue_add_next(this.uris ? this.uris : this.playlist.uri) }, open_playlist: function () { diff --git a/web-src/src/pages/PagePlaylist.vue b/web-src/src/pages/PagePlaylist.vue index fbfa9465..9fd59cd6 100644 --- a/web-src/src/pages/PagePlaylist.vue +++ b/web-src/src/pages/PagePlaylist.vue @@ -16,7 +16,7 @@