Skip to content
Snippets Groups Projects
Verified Commit f40eefcd authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #98: Now stop running radio when clearing queue

parent e65606fd
No related branches found
No related tags found
No related merge requests found
Fixed queue skipping tracks (#91)
...@@ -133,8 +133,8 @@ export default { ...@@ -133,8 +133,8 @@ export default {
} }
}, },
clean ({dispatch, commit}) { clean ({dispatch, commit}) {
dispatch('radios/stop', null, {root: true})
dispatch('player/stop', null, {root: true}) dispatch('player/stop', null, {root: true})
// radios.stop()
commit('tracks', []) commit('tracks', [])
dispatch('currentIndex', -1) dispatch('currentIndex', -1)
// so we replay automatically on next track append // so we replay automatically on next track append
......
...@@ -308,6 +308,7 @@ describe('store/queue', () => { ...@@ -308,6 +308,7 @@ describe('store/queue', () => {
{ type: 'ended', payload: true } { type: 'ended', payload: true }
], ],
expectedActions: [ expectedActions: [
{ type: 'radios/stop', payload: null, options: {root: true} },
{ type: 'player/stop', payload: null, options: {root: true} }, { type: 'player/stop', payload: null, options: {root: true} },
{ type: 'currentIndex', payload: -1 } { type: 'currentIndex', payload: -1 }
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment