Adding ability to blur parallax; Overlay header; Discover Featured intro playlist

This commit is contained in:
James Barnsley
2017-05-26 09:04:58 +12:00
parent 89acad7822
commit d9b501cd51
10 changed files with 105 additions and 31 deletions

View File

@ -316,10 +316,15 @@ export function getFeaturedPlaylists(){
))
}
// Pick the first playlist, and get the full playlist object
// We use this as in our introduction parallax panel, and need the full playlist
dispatch(getPlaylist(playlists[0].uri))
dispatch({
type: 'PLAYLISTS_LOADED',
playlists: playlists
});
});
dispatch({
type: 'SPOTIFY_FEATURED_PLAYLISTS_LOADED',
data: {

View File

@ -116,6 +116,11 @@ const UIMiddleware = (function(){
next(action)
break
case 'MOPIDY_PLAY_PLAYLIST':
ReactGA.event({ category: 'Playlist', action: 'Play', label: action.uri })
next(action)
break
case 'MOPIDY_SAVE_PLAYLIST':
case 'SPOTIFY_SAVE_PLAYLIST':
ReactGA.event({ category: 'Playlist', action: 'Save', label: action.key })
@ -150,6 +155,11 @@ const UIMiddleware = (function(){
next(action)
break
case 'MOPIDY_DELETE_PLAYLIST':
ReactGA.event({ category: 'Playlist', action: 'Delete', label: action.uri })
next(action)
break
case 'PUSHER_ERROR':
ReactGA.event({ category: 'Pusher', action: 'Error', label: action.message })
next(action)