Artist and album following; TODO: move follow to separate component possibly
This commit is contained in:
@ -134,6 +134,10 @@ export default function reducer(ui = {}, action){
|
||||
})
|
||||
return Object.assign({}, ui, { album: album });
|
||||
|
||||
case 'SPOTIFY_ALBUM_FOLLOWING':
|
||||
var album = Object.assign({}, ui.album, { following: action.data })
|
||||
return Object.assign({}, ui, { album: album });
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@ -161,6 +165,10 @@ export default function reducer(ui = {}, action){
|
||||
})
|
||||
return Object.assign({}, ui, { artist: artist });
|
||||
|
||||
case 'SPOTIFY_ARTIST_FOLLOWING':
|
||||
var artist = Object.assign({}, ui.artist, { following: action.data })
|
||||
return Object.assign({}, ui, { artist: artist });
|
||||
|
||||
|
||||
/**
|
||||
* Playlists
|
||||
|
||||
Reference in New Issue
Block a user