Fix #98: Now stop running radio when clearing queue

merge-requests/154/head
Eliot Berriot 2018-02-28 18:16:25 +01:00
rodzic e65606fd9d
commit f40eefcd6a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
4 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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