@@ -1,3 +1,8 @@
|
||||
/*!
|
||||
* Copyright (c) 2024 PLANKA Software GmbH
|
||||
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
||||
*/
|
||||
|
||||
import EntryActionTypes from '../constants/EntryActionTypes';
|
||||
|
||||
const createLabelInCurrentBoard = (data) => ({
|
||||
@@ -7,6 +12,14 @@ const createLabelInCurrentBoard = (data) => ({
|
||||
},
|
||||
});
|
||||
|
||||
const createLabelFromCard = (cardId, data) => ({
|
||||
type: EntryActionTypes.LABEL_FROM_CARD_CREATE,
|
||||
payload: {
|
||||
cardId,
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
const handleLabelCreate = (label) => ({
|
||||
type: EntryActionTypes.LABEL_CREATE_HANDLE,
|
||||
payload: {
|
||||
@@ -111,6 +124,7 @@ const removeLabelFromFilterInCurrentBoard = (id) => ({
|
||||
|
||||
export default {
|
||||
createLabelInCurrentBoard,
|
||||
createLabelFromCard,
|
||||
handleLabelCreate,
|
||||
updateLabel,
|
||||
handleLabelUpdate,
|
||||
|
||||
Reference in New Issue
Block a user