Album view
This commit is contained in:
@ -3,10 +3,10 @@
|
||||
* Actions and Action Creators
|
||||
**/
|
||||
|
||||
export function setConfig( config ){
|
||||
export function setPort( port ){
|
||||
return {
|
||||
type: 'PUSHER_SET_CONFIG',
|
||||
config: config
|
||||
type: 'PUSHER_SET_PORT',
|
||||
port: port
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,8 @@ export default function reducer(pusher = {}, action){
|
||||
case 'PUSHER_DISCONNECTED':
|
||||
return Object.assign({}, pusher, { connected: false, connecting: false });
|
||||
|
||||
case 'PUSHER_SET_CONFIG':
|
||||
return Object.assign({}, pusher, {
|
||||
port: action.port
|
||||
});
|
||||
case 'PUSHER_SET_PORT':
|
||||
return Object.assign({}, pusher, { port: action.port });
|
||||
|
||||
case 'PUSHER_CHANGE_USERNAME':
|
||||
return Object.assign({}, pusher, { username: action.data.connection.username });
|
||||
|
||||
Reference in New Issue
Block a user