mirror of
https://github.com/plankanban/planka.git
synced 2025-08-03 20:45:27 +02:00
Move cards between boards and projects
This commit is contained in:
parent
712567ac57
commit
cbc942e306
24 changed files with 474 additions and 16 deletions
|
@ -23,7 +23,7 @@ export const updateCurrentCard = (data) => ({
|
|||
},
|
||||
});
|
||||
|
||||
export const moveCard = (id, listId, index) => ({
|
||||
export const moveCard = (id, listId, index = 0) => ({
|
||||
type: EntryActionTypes.CARD_MOVE,
|
||||
payload: {
|
||||
id,
|
||||
|
@ -32,6 +32,33 @@ export const moveCard = (id, listId, index) => ({
|
|||
},
|
||||
});
|
||||
|
||||
export const moveCurrentCard = (listId, index = 0) => ({
|
||||
type: EntryActionTypes.CURRENT_CARD_MOVE,
|
||||
payload: {
|
||||
listId,
|
||||
index,
|
||||
},
|
||||
});
|
||||
|
||||
export const transferCard = (id, boardId, listId, index = 0) => ({
|
||||
type: EntryActionTypes.CARD_TRANSFER,
|
||||
payload: {
|
||||
id,
|
||||
boardId,
|
||||
listId,
|
||||
index,
|
||||
},
|
||||
});
|
||||
|
||||
export const transferCurrentCard = (boardId, listId, index = 0) => ({
|
||||
type: EntryActionTypes.CURRENT_CARD_TRANSFER,
|
||||
payload: {
|
||||
boardId,
|
||||
listId,
|
||||
index,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteCard = (id) => ({
|
||||
type: EntryActionTypes.CARD_DELETE,
|
||||
payload: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue