Adding page titles

This commit is contained in:
James Barnsley
2018-06-28 08:12:03 +12:00
parent eeb24f4c54
commit 29f60071a9
18 changed files with 46532 additions and 48450 deletions

View File

@ -246,6 +246,11 @@ const MopidyMiddleware = (function(){
* General playback
**/
case 'MOPIDY_PLAY_STATE':
store.dispatch(uiActions.setWindowTitle(null, action.play_state));
next(action);
break
case 'MOPIDY_GET_PLAY_STATE':
request(socket, store, 'playback.getState')
.then(