diff --git a/changes/changelog.d/632.bugfix b/changes/changelog.d/632.bugfix new file mode 100644 index 000000000..1647a04d0 --- /dev/null +++ b/changes/changelog.d/632.bugfix @@ -0,0 +1 @@ +Fix play button not starting playback with empty queue (#632) diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index 83751d8d4..308feb223 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -80,7 +80,7 @@ class="two wide column control" @click.prevent.stop="previous" :disabled="emptyQueue"> - + - +
{ return e.title })) + let shouldPlay = false if (state.tracks.length === 0) { index = 0 + shouldPlay = true } else { index = index || state.tracks.length } @@ -84,6 +86,11 @@ export default { if (callback && i + 1 === total) { p.then(callback) } + if (shouldPlay && p) { + p.then(() => { + dispatch('next') + }) + } }) },