Fix #98: Now stop running radio when clearing queue

This commit is contained in:
Eliot Berriot 2018-02-28 18:16:25 +01:00
parent e65606fd9d
commit f40eefcd6a
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
4 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
Fixed queue skipping tracks (#91)

View File

View File

@ -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

View File

@ -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 }
] ]