mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 00:35:03 -05:00
Merge pull request #1112 from whatdoineed2do/web-random-playlist
[web-src] random playlist playlist modal fix
This commit is contained in:
commit
db5ba5bf47
@ -44,22 +44,22 @@ import webapi from '@/webapi'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ModalDialogPlaylist',
|
name: 'ModalDialogPlaylist',
|
||||||
props: ['show', 'playlist', 'tracks'],
|
props: ['show', 'playlist', 'uris'],
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
play: function () {
|
play: function () {
|
||||||
this.$emit('close')
|
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 () {
|
queue_add: function () {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
webapi.queue_add(this.playlist.uri)
|
webapi.queue_add(this.uris ? this.uris : this.playlist.uri)
|
||||||
},
|
},
|
||||||
|
|
||||||
queue_add_next: function () {
|
queue_add_next: function () {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
webapi.queue_add_next(this.playlist.uri)
|
webapi.queue_add_next(this.uris ? this.uris : this.playlist.uri)
|
||||||
},
|
},
|
||||||
|
|
||||||
open_playlist: function () {
|
open_playlist: function () {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<template slot="content">
|
<template slot="content">
|
||||||
<p class="heading has-text-centered-mobile">{{ tracks.length }} tracks</p>
|
<p class="heading has-text-centered-mobile">{{ tracks.length }} tracks</p>
|
||||||
<list-tracks :tracks="tracks" :uris="uris"></list-tracks>
|
<list-tracks :tracks="tracks" :uris="uris"></list-tracks>
|
||||||
<modal-dialog-playlist :show="show_playlist_details_modal" :playlist="playlist" :tracks="playlist.random ? tracks : undefined" @close="show_playlist_details_modal = false" />
|
<modal-dialog-playlist :show="show_playlist_details_modal" :playlist="playlist" :uris="uris" @close="show_playlist_details_modal = false" />
|
||||||
</template>
|
</template>
|
||||||
</content-with-heading>
|
</content-with-heading>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user