1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00

Move cards between boards and projects

This commit is contained in:
Maksim Eltyshev 2020-05-05 01:30:06 +05:00
parent 712567ac57
commit cbc942e306
24 changed files with 474 additions and 16 deletions

View file

@ -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: {