Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jovuit
funkwhale
Commits
f40eefcd
Verified
Commit
f40eefcd
authored
Feb 28, 2018
by
Eliot Berriot
Browse files
Fix #98: Now stop running radio when clearing queue
parent
e65606fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
changes/changelog.d/91.bugfix
View file @
f40eefcd
Fixed queue skipping tracks (#91)
changes/changelog.d/98.feature
0 → 100644
View file @
f40eefcd
front/src/store/queue.js
View file @
f40eefcd
...
...
@@ -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
...
...
front/test/unit/specs/store/queue.spec.js
View file @
f40eefcd
...
...
@@ -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
}
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment