Handling non-authorized Genius
This commit is contained in:
@ -3,6 +3,14 @@ var coreActions = require('../core/actions');
|
||||
var uiActions = require('../ui/actions');
|
||||
var helpers = require('../../helpers');
|
||||
|
||||
|
||||
export function set(data){
|
||||
return {
|
||||
type: 'LASTFM_SET',
|
||||
data: data
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an ajax request to the LastFM API
|
||||
*
|
||||
@ -126,14 +134,6 @@ const sendSignedRequest = (dispatch, getState, params) => {
|
||||
}
|
||||
|
||||
|
||||
export function set(data){
|
||||
return {
|
||||
type: 'LASTFM_SET',
|
||||
data: data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Handle authorization process
|
||||
**/
|
||||
|
||||
@ -14,6 +14,11 @@ const LastfmMiddleware = (function(){
|
||||
|
||||
switch(action.type){
|
||||
|
||||
case 'LASTFM_SET':
|
||||
console.log(action);
|
||||
next(action);
|
||||
break;
|
||||
|
||||
case 'LASTFM_ME_LOADED':
|
||||
store.dispatch({
|
||||
type: 'LASTFM_USER_LOADED',
|
||||
|
||||
Reference in New Issue
Block a user