diff --git a/changes/changelog.d/145.bugfix b/changes/changelog.d/145.bugfix new file mode 100644 index 0000000000000000000000000000000000000000..5c66e5f8bd84ad984020c2eb3d28ebe2f3671b97 --- /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 b0a4f732399ebecfe7c1d920c0c9063a0903684b..23e074a80c36fb849eb306ea59da68756a05282b 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}) {