Merge branch '145-radio-delete-last-track' into 'develop'

Resolve "Unexpected behavior with radios"

Closes #145

See merge request funkwhale/funkwhale!159
merge-requests/165/head
Eliot Berriot 2018-04-23 16:46:30 +00:00
commit 0ab62b8648
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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