Scroll to top on route; Notifications click behind

This commit is contained in:
James Barnsley
2017-02-05 20:14:27 +13:00
parent 6448b29ec8
commit 8fd06823f2
4 changed files with 12 additions and 3 deletions

View File

@ -17,6 +17,10 @@ const SpotifyMiddleware = (function(){
store.dispatch( spotifyActions.getMe() )
break
case 'SPOTIFY_DISCONNECTED':
store.dispatch( uiActions.createNotification('Spotify disconnected','bad') )
break
case 'SPOTIFY_CREATE_PLAYLIST':
if( !store.getState().spotify.authorized ){
store.dispatch( uiActions.createNotification( "Must be logged in to Spotify to do that", 'bad' ) )