mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 07:39:44 +02:00
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,
|
||
|
},
|
||
|
});
|