diff --git a/changes/changelog.d/145.bugfix b/changes/changelog.d/145.bugfix new file mode 100644 index 000000000..5c66e5f8b --- /dev/null +++ b/changes/changelog.d/145.bugfix @@ -0,0 +1 @@ +Radio will now append new track if you delete the last track in queue (#145) diff --git a/front/src/store/queue.js b/front/src/store/queue.js index 2890dd1e8..8d45dca00 100644 --- a/front/src/store/queue.js +++ b/front/src/store/queue.js @@ -100,6 +100,9 @@ export default { // we play next track, which now have the same index dispatch('currentIndex', index) } + if (state.currentIndex + 1 === state.tracks.length) { + dispatch('radios/populateQueue', null, {root: true}) + } }, resume ({state, dispatch, rootState}) {