Fixing stop button, fixes #281
This commit is contained in:
@ -70,7 +70,7 @@ export function pause(){
|
||||
|
||||
export function stop(){
|
||||
return {
|
||||
type: 'MOPIDY_PAUSE'
|
||||
type: 'MOPIDY_STOP'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -319,7 +319,10 @@ const MopidyMiddleware = (function(){
|
||||
break
|
||||
|
||||
case 'MOPIDY_STOP':
|
||||
request(socket, store, 'playback.stop');
|
||||
request(socket, store, 'playback.stop')
|
||||
.then(response => {
|
||||
store.dispatch(mopidyActions.clearCurrentTrack());
|
||||
});
|
||||
|
||||
store.dispatch(pusherActions.deliverBroadcast(
|
||||
'notification',
|
||||
|
||||
Reference in New Issue
Block a user