|
|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
import ActionTypes from '../constants/ActionTypes';
|
|
|
|
|
|
|
|
|
|
const initializeCore = (
|
|
|
|
|
config,
|
|
|
|
|
user,
|
|
|
|
|
board,
|
|
|
|
|
users,
|
|
|
|
|
@ -21,7 +20,6 @@ const initializeCore = (
|
|
|
|
|
) => ({
|
|
|
|
|
type: ActionTypes.CORE_INITIALIZE,
|
|
|
|
|
payload: {
|
|
|
|
|
config,
|
|
|
|
|
user,
|
|
|
|
|
board,
|
|
|
|
|
users,
|
|
|
|
|
@ -41,6 +39,14 @@ const initializeCore = (
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// TODO: with success?
|
|
|
|
|
initializeCore.fetchConfig = (config) => ({
|
|
|
|
|
type: ActionTypes.CORE_INITIALIZE__CONFIG_FETCH,
|
|
|
|
|
payload: {
|
|
|
|
|
config,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const logout = () => ({
|
|
|
|
|
type: ActionTypes.LOGOUT,
|
|
|
|
|
payload: {},
|
|
|
|
|
|