mirror of
https://github.com/plankanban/planka.git
synced 2025-12-26 01:11:58 +03:00
28 lines
514 B
JavaScript
28 lines
514 B
JavaScript
import ActionTypes from '../constants/ActionTypes';
|
|
|
|
/* Events */
|
|
|
|
export const fetchActionsRequested = (cardId) => ({
|
|
type: ActionTypes.ACTIONS_FETCH_REQUESTED,
|
|
payload: {
|
|
cardId,
|
|
},
|
|
});
|
|
|
|
export const fetchActionsSucceeded = (cardId, actions, users) => ({
|
|
type: ActionTypes.ACTIONS_FETCH_SUCCEEDED,
|
|
payload: {
|
|
cardId,
|
|
actions,
|
|
users,
|
|
},
|
|
});
|
|
|
|
export const fetchActionsFailed = (cardId, error) => ({
|
|
type: ActionTypes.ACTIONS_FETCH_FAILED,
|
|
payload: {
|
|
cardId,
|
|
error,
|
|
},
|
|
});
|