Removing spotify connected status - we connect on demand instead
This commit is contained in:
@ -4,16 +4,6 @@ import * as helpers from '../../helpers'
|
||||
export default function reducer(spotify = {}, action){
|
||||
switch (action.type){
|
||||
|
||||
case 'SPOTIFY_CONNECT':
|
||||
case 'SPOTIFY_CONNECTING':
|
||||
return Object.assign({}, spotify, { connected: false, connecting: true })
|
||||
|
||||
case 'SPOTIFY_CONNECTED':
|
||||
return Object.assign({}, spotify, { connected: true, connecting: false })
|
||||
|
||||
case 'SPOTIFY_DISCONNECTED':
|
||||
return Object.assign({}, spotify, { connected: false, connecting: false })
|
||||
|
||||
case 'SPOTIFY_SET':
|
||||
return Object.assign({},spotify,action.data)
|
||||
|
||||
@ -61,7 +51,6 @@ export default function reducer(spotify = {}, action){
|
||||
|
||||
case 'SPOTIFY_TOKEN_REFRESHED':
|
||||
return Object.assign({}, spotify, {
|
||||
connected: true,
|
||||
refreshing_token: false,
|
||||
access_token: action.data.access_token,
|
||||
token_expiry: action.data.token_expiry
|
||||
@ -73,9 +62,6 @@ export default function reducer(spotify = {}, action){
|
||||
token_expiry: action.spotify_token.token_expiry
|
||||
});
|
||||
|
||||
case 'SPOTIFY_DISCONNECTED':
|
||||
return Object.assign({}, spotify, { connected: false, connecting: false })
|
||||
|
||||
case 'SPOTIFY_ME_LOADED':
|
||||
return Object.assign({}, spotify, { me: action.data })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user