kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Merge branch 'sshuffle-restart' into 'develop'
Front: Shuffle now restart next track from beginning (#70) Closes #70 See merge request funkwhale/funkwhale!52merge-requests/154/head
commit
d33ee8e193
|
@ -5,6 +5,7 @@ Changelog
|
|||
----------------
|
||||
|
||||
- Front: Fixed broken ajax call on radio builder (#69)
|
||||
- Front: Shuffle now restart next track from beginning (#70)
|
||||
- Front: volume slider should now have the same style everywhere (#72)
|
||||
|
||||
0.5 (2018-02-24)
|
||||
|
|
|
@ -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})
|
||||
}
|
||||
|
|
|
@ -322,6 +322,7 @@ describe('store/queue', () => {
|
|||
action: store.actions.shuffle,
|
||||
params: {state: {tracks: tracks}},
|
||||
expectedMutations: [
|
||||
{ type: 'player/currentTime', payload: 0 , options: {root: true}},
|
||||
{ type: 'tracks', payload: [] }
|
||||
],
|
||||
expectedActions: [
|
||||
|
|
Ładowanie…
Reference in New Issue