mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
Move cards between boards and projects
This commit is contained in:
parent
ba2017705b
commit
b1d187476d
24 changed files with 474 additions and 16 deletions
|
@ -40,6 +40,10 @@ module.exports = {
|
|||
delete inputs.toList; // eslint-disable-line no-param-reassign
|
||||
} else {
|
||||
values.listId = inputs.toList.id;
|
||||
|
||||
if (inputs.toList.boardId !== inputs.list.boardId) {
|
||||
values.boardId = inputs.toList.boardId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,6 +96,7 @@ module.exports = {
|
|||
);
|
||||
|
||||
if (inputs.toList) {
|
||||
// TODO: add transfer action
|
||||
await sails.helpers.createAction(card, inputs.user, {
|
||||
type: 'moveCard',
|
||||
data: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue