Spotify.access will be checker for full access

This commit is contained in:
James Barnsley
2017-08-04 22:33:49 +12:00
parent c2b8cfb346
commit e1ee57bdad
15 changed files with 100 additions and 92 deletions

View File

@ -173,7 +173,7 @@ const mapStateToProps = (state, ownProps) => {
album: (state.core.albums && typeof(state.core.albums[ownProps.params.uri]) !== 'undefined' ? state.core.albums[ownProps.params.uri] : false ),
albums: state.core.albums,
library_albums: state.core.library_albums,
spotify_authorized: state.spotify.authorized,
spotify_authorized: state.spotify.authorization,
mopidy_connected: state.mopidy.connected
};
}

View File

@ -265,7 +265,7 @@ const mapStateToProps = (state, ownProps) => {
artists: (state.core.artists ? state.core.artists : []),
library_artists: (state.core.library_artists ? state.core.library_artists : []),
albums: (state.core.albums ? state.core.albums : []),
spotify_authorized: state.spotify.authorized,
spotify_authorized: state.spotify.authorization,
mopidy_connected: state.mopidy.connected
}
}

View File

@ -217,7 +217,7 @@ const mapStateToProps = (state, ownProps) => {
playlist: (state.core.playlists && typeof(state.core.playlists[uri]) !== 'undefined' ? state.core.playlists[uri] : false ),
library_playlists: state.core.library_playlists,
mopidy_connected: state.mopidy.connected,
spotify_authorized: state.spotify.authorized,
spotify_authorized: state.spotify.authorization,
spotify_userid: state.spotify.me.id
}
}

View File

@ -121,7 +121,7 @@ class User extends React.Component{
const mapStateToProps = (state, ownProps) => {
return {
load_queue: state.ui.load_queue,
spotify_authorized: state.spotify.authorized,
spotify_authorized: state.spotify.authorization,
spotify_authentication_provider: state.spotify.authentication_provider,
spotify_backend_username: state.spotify.backend_username,
me: state.spotify.me,

View File

@ -268,7 +268,7 @@ const mapStateToProps = (state, ownProps) => {
artists: (state.core.artists ? state.core.artists : []),
tracks: (state.core.tracks ? state.core.tracks : []),
genres: (state.core.genres ? state.core.genres : []),
authorized: state.spotify.authorized,
authorized: state.spotify.authorization,
load_queue: state.ui.load_queue,
quick_search_results: (state.spotify.quick_search_results ? state.spotify.quick_search_results : {artists: [], tracks: []}),
recommendations: (state.spotify.recommendations ? state.spotify.recommendations : {}),