1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-22 06:39:44 +02:00
planka/client/src/actions/core.js

58 lines
839 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
import ActionTypes from '../constants/ActionTypes';
2022-08-04 13:31:14 +02:00
const initializeCore = (
2023-10-17 19:18:19 +02:00
config,
user,
board,
users,
projects,
projectManagers,
boards,
boardMemberships,
labels,
lists,
cards,
cardMemberships,
cardLabels,
tasks,
attachments,
2022-08-04 13:31:14 +02:00
activities,
notifications,
) => ({
type: ActionTypes.CORE_INITIALIZE,
payload: {
2023-10-17 19:18:19 +02:00
config,
user,
board,
users,
projects,
projectManagers,
boards,
boardMemberships,
labels,
lists,
cards,
cardMemberships,
cardLabels,
tasks,
attachments,
2022-08-04 13:31:14 +02:00
activities,
notifications,
},
2019-08-31 04:07:25 +05:00
});
2022-08-04 13:31:14 +02:00
const logout = () => ({
type: ActionTypes.LOGOUT,
payload: {},
});
logout.invalidateAccessToken = () => ({
type: ActionTypes.LOGOUT__ACCESS_TOKEN_INVALIDATE,
payload: {},
});
2022-08-04 13:31:14 +02:00
export default {
initializeCore,
logout,
};