Handling non-authorized Genius

This commit is contained in:
James Barnsley
2018-08-21 21:08:11 +12:00
parent e97bc4f401
commit b02e4ef1ce
9 changed files with 13906 additions and 10583 deletions

View File

@ -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
**/

View File

@ -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',