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

This commit is contained in:
Eliot Berriot 2018-04-23 18:43:46 +02:00
parent 48c9a8bd55
commit 0e153c0f4d
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Radio will now append new track if you delete the last track in queue (#145)

View File

@ -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}) {