You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
683 B
JavaScript
41 lines
683 B
JavaScript
import ActionTypes from '../constants/ActionTypes';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const handleLocationChange = (
|
|
board,
|
|
users,
|
|
projects,
|
|
boardMemberships,
|
|
labels,
|
|
lists,
|
|
cards,
|
|
cardMemberships,
|
|
cardLabels,
|
|
tasks,
|
|
attachments,
|
|
notifications,
|
|
) => ({
|
|
type: ActionTypes.LOCATION_CHANGE_HANDLE,
|
|
payload: {
|
|
board,
|
|
users,
|
|
projects,
|
|
boardMemberships,
|
|
labels,
|
|
lists,
|
|
cards,
|
|
cardMemberships,
|
|
cardLabels,
|
|
tasks,
|
|
attachments,
|
|
notifications,
|
|
},
|
|
});
|
|
|
|
handleLocationChange.fetchBoard = (id) => ({
|
|
type: ActionTypes.LOCATION_CHANGE_HANDLE__BOARD_FETCH,
|
|
payload: {
|
|
id,
|
|
},
|
|
});
|