More migration to coreActions
This commit is contained in:
@ -261,11 +261,11 @@ const MopidyMiddleware = (function(){
|
||||
}
|
||||
|
||||
// playlist already in index
|
||||
if (store.getState().ui.playlists.hasOwnProperty(action.uri)){
|
||||
if (store.getState().core.playlists.hasOwnProperty(action.uri)){
|
||||
|
||||
// make sure we didn't get this playlist from Mopidy-Spotify
|
||||
// if we did, we'd have a cached version on server so no need to fetch
|
||||
if (!store.getState().ui.playlists[action.uri].is_mopidy){
|
||||
if (!store.getState().core.playlists[action.uri].is_mopidy){
|
||||
store.dispatch(uiActions.startProcess('MOPIDY_ENQUEUE_URIS', 'Fetching tracks'))
|
||||
store.dispatch(spotifyActions.getAllPlaylistTracks(action.uri))
|
||||
break
|
||||
@ -410,7 +410,7 @@ const MopidyMiddleware = (function(){
|
||||
case 'MOPIDY_PLAY_URIS':
|
||||
|
||||
// Stop the radio
|
||||
if (store.getState().ui.radio && store.getState().ui.radio.enabled){
|
||||
if (store.getState().core.radio && store.getState().core.radio.enabled){
|
||||
store.dispatch(pusherActions.stopRadio())
|
||||
}
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ const SpotifyMiddleware = (function(){
|
||||
break
|
||||
|
||||
case 'SPOTIFY_REMOVE_PLAYLIST_TRACKS':
|
||||
var playlist = state.ui.playlists[action.key]
|
||||
var playlist = state.core.playlists[action.key]
|
||||
|
||||
if( !store.getState().spotify.authorized ){
|
||||
store.dispatch( uiActions.createNotification( "Must be logged in to Spotify to do that", 'bad' ) )
|
||||
|
||||
Reference in New Issue
Block a user