Skip to content
Snippets Groups Projects
Verified Commit 0e153c0f authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #145: Radio will now append new track if you delete the last track in queue

parent 48c9a8bd
No related branches found
No related tags found
No related merge requests found
Radio will now append new track if you delete the last track in queue (#145)
......@@ -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}) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment