mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 10:49:15 +02:00
Front: Shuffle now restart next track from beginning (#70)
This commit is contained in:
parent
43e009de29
commit
541ac29047
4 changed files with 4 additions and 6 deletions
|
@ -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})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue