mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 09:15:39 +03:00
68 lines
1.3 KiB
JavaScript
68 lines
1.3 KiB
JavaScript
|
|
import EntryActionTypes from '../../constants/EntryActionTypes';
|
||
|
|
|
||
|
|
export const createLabelInCurrentBoard = (data) => ({
|
||
|
|
type: EntryActionTypes.LABEL_IN_CURRENT_BOARD_CREATE,
|
||
|
|
payload: {
|
||
|
|
data,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const updateLabel = (id, data) => ({
|
||
|
|
type: EntryActionTypes.LABEL_UPDATE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
data,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const deleteLabel = (id) => ({
|
||
|
|
type: EntryActionTypes.LABEL_DELETE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const addLabelToCard = (id, cardId) => ({
|
||
|
|
type: EntryActionTypes.LABEL_TO_CARD_ADD,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
cardId,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const addLabelToCurrentCard = (id) => ({
|
||
|
|
type: EntryActionTypes.LABEL_TO_CURRENT_CARD_ADD,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const removeLabelFromCard = (id, cardId) => ({
|
||
|
|
type: EntryActionTypes.LABEL_FROM_CARD_REMOVE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
cardId,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const removeLabelFromCurrentCard = (id) => ({
|
||
|
|
type: EntryActionTypes.LABEL_FROM_CURRENT_CARD_REMOVE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const addLabelToFilterInCurrentBoard = (id) => ({
|
||
|
|
type: EntryActionTypes.LABEL_TO_FILTER_IN_CURRENT_BOARD_ADD,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const removeLabelFromFilterInCurrentBoard = (id) => ({
|
||
|
|
type: EntryActionTypes.LABEL_FROM_FILTER_IN_CURRENT_BOARD_REMOVE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|