2019-08-31 04:07:25 +05:00
|
|
|
import EntryActionTypes from '../../constants/EntryActionTypes';
|
|
|
|
|
|
2020-02-03 18:42:31 +05:00
|
|
|
export const createLabelInCurrentBoard = data => ({
|
2019-08-31 04:07:25 +05:00
|
|
|
type: EntryActionTypes.LABEL_IN_CURRENT_BOARD_CREATE,
|
|
|
|
|
payload: {
|
|
|
|
|
data,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const updateLabel = (id, data) => ({
|
|
|
|
|
type: EntryActionTypes.LABEL_UPDATE,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
data,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2020-02-03 18:42:31 +05:00
|
|
|
export const deleteLabel = id => ({
|
2019-08-31 04:07:25 +05:00
|
|
|
type: EntryActionTypes.LABEL_DELETE,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const addLabelToCard = (id, cardId) => ({
|
|
|
|
|
type: EntryActionTypes.LABEL_TO_CARD_ADD,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
cardId,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2020-02-03 18:42:31 +05:00
|
|
|
export const addLabelToCurrentCard = id => ({
|
2019-08-31 04:07:25 +05:00
|
|
|
type: EntryActionTypes.LABEL_TO_CURRENT_CARD_ADD,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const removeLabelFromCard = (id, cardId) => ({
|
|
|
|
|
type: EntryActionTypes.LABEL_FROM_CARD_REMOVE,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
cardId,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2020-02-03 18:42:31 +05:00
|
|
|
export const removeLabelFromCurrentCard = id => ({
|
2019-08-31 04:07:25 +05:00
|
|
|
type: EntryActionTypes.LABEL_FROM_CURRENT_CARD_REMOVE,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2020-02-03 18:42:31 +05:00
|
|
|
export const addLabelToFilterInCurrentBoard = id => ({
|
2019-08-31 04:07:25 +05:00
|
|
|
type: EntryActionTypes.LABEL_TO_FILTER_IN_CURRENT_BOARD_ADD,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2020-02-03 18:42:31 +05:00
|
|
|
export const removeLabelFromFilterInCurrentBoard = id => ({
|
2019-08-31 04:07:25 +05:00
|
|
|
type: EntryActionTypes.LABEL_FROM_FILTER_IN_CURRENT_BOARD_REMOVE,
|
|
|
|
|
payload: {
|
|
|
|
|
id,
|
|
|
|
|
},
|
|
|
|
|
});
|