Responsive adjustments; Removing library dropzone; Sidebar hide on navigation

This commit is contained in:
James Barnsley
2016-11-30 09:32:46 +13:00
parent 83a899f24e
commit 5f07e855bd
11 changed files with 66 additions and 21 deletions

View File

@ -85,6 +85,7 @@ function refreshToken( dispatch, getState ){
response.source = 'spotify';
dispatch({
type: 'SPOTIFY_TOKEN_REFRESHED',
provider: 'spotify-http-api',
data: response
});
resolve(response);
@ -109,6 +110,7 @@ function refreshToken( dispatch, getState ){
response.source = 'mopidy';
dispatch({
type: 'SPOTIFY_TOKEN_REFRESHED',
provider: 'mopidy-spotify',
data: response
});
resolve(response);

View File

@ -48,7 +48,8 @@ export default function reducer(spotify = {}, action){
refreshing_token: false,
authorization: action.data,
access_token: action.data.access_token,
token_expiry: action.data.token_expiry
token_expiry: action.data.token_expiry,
provider: action.provider
});
case 'SPOTIFY_DISCONNECTED':