Testing and patching notifications and modals; exploring icons for best favicon + manifest combo
This commit is contained in:
@ -185,13 +185,15 @@ const CoreMiddleware = (function(){
|
||||
break
|
||||
|
||||
case 'PLAYLIST_TRACKS_ADDED':
|
||||
store.dispatch(uiActions.createNotification({content: 'Added '+action.tracks_uris.length+' tracks to playlist'}))
|
||||
store.dispatch(uiActions.createNotification({type: 'info', content: 'Added '+action.tracks_uris.length+' tracks to playlist'}))
|
||||
switch(helpers.uriSource(action.key)){
|
||||
|
||||
case 'spotify':
|
||||
store.dispatch(spotifyActions.getPlaylist(action.key))
|
||||
store.dispatch(spotifyActions.getPlaylist(action.key));
|
||||
break
|
||||
|
||||
case 'm3u':
|
||||
if (store.getState().mopidy.connected ) store.dispatch(mopidyActions.getPlaylist(action.key))
|
||||
if (store.getState().mopidy.connected ) store.dispatch(mopidyActions.getPlaylist(action.key));
|
||||
break
|
||||
}
|
||||
next(action)
|
||||
|
||||
Reference in New Issue
Block a user