Fix #98: Now stop running radio when clearing queue
This commit is contained in:
parent
e65606fd9d
commit
f40eefcd6a
|
@ -0,0 +1 @@
|
|||
Fixed queue skipping tracks (#91)
|
|
@ -133,8 +133,8 @@ export default {
|
|||
}
|
||||
},
|
||||
clean ({dispatch, commit}) {
|
||||
dispatch('radios/stop', null, {root: true})
|
||||
dispatch('player/stop', null, {root: true})
|
||||
// radios.stop()
|
||||
commit('tracks', [])
|
||||
dispatch('currentIndex', -1)
|
||||
// so we replay automatically on next track append
|
||||
|
|
|
@ -308,6 +308,7 @@ describe('store/queue', () => {
|
|||
{ type: 'ended', payload: true }
|
||||
],
|
||||
expectedActions: [
|
||||
{ type: 'radios/stop', payload: null, options: {root: true} },
|
||||
{ type: 'player/stop', payload: null, options: {root: true} },
|
||||
{ type: 'currentIndex', payload: -1 }
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue