mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-28 15:39:40 +02:00
16 lines
316 B
JavaScript
16 lines
316 B
JavaScript
|
import ACTION_TYPES from './action-types';
|
||
|
|
||
|
/**
|
||
|
* Sets global config for the application.
|
||
|
*
|
||
|
* @param object config
|
||
|
*/
|
||
|
export function setConfig(config) {
|
||
|
return (dispatch, getState) => {
|
||
|
return dispatch({
|
||
|
type: ACTION_TYPES.SET_CONFIG,
|
||
|
payload: { config }
|
||
|
});
|
||
|
}
|
||
|
}
|