Fixing stop button, fixes #281

This commit is contained in:
James Barnsley
2018-04-20 08:08:54 +12:00
parent cd52734bcc
commit d6b4e99ded
2 changed files with 5 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export function pause(){
export function stop(){
return {
type: 'MOPIDY_PAUSE'
type: 'MOPIDY_STOP'
}
}

View File

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