Front: Shuffle now restart next track from beginning (#70)

This commit is contained in:
Eliot Berriot 2018-02-24 17:34:06 +01:00
parent 43e009de29
commit 541ac29047
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 4 additions and 6 deletions

View file

@ -142,6 +142,7 @@ export default {
},
shuffle ({dispatch, commit, state}) {
let shuffled = _.shuffle(state.tracks)
commit('player/currentTime', 0, {root: true})
commit('tracks', [])
dispatch('appendMany', {tracks: shuffled})
}