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.
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,
|
|
},
|
|
});
|