Context submenu; Modal beginnings

This commit is contained in:
James Barnsley
2016-11-11 23:21:51 +13:00
parent 31a1856baf
commit c471ae62e7
17 changed files with 294 additions and 19 deletions

View File

@ -191,6 +191,9 @@ const MopidyMiddleware = (function(){
case 'MOPIDY_PLAYLISTS':
instruct( socket, store, 'playlists.asList' )
.then( response => {
for( var i = 0; i < response.length; i++ ){
if( response[i].uri.startsWith('m3u:')) response[i] = Object.assign({}, response[i], { can_edit: true })
}
store.dispatch({ type: 'MOPIDY_PLAYLISTS_LOADED', data: response });
})
break;