Move cards between boards and projects

This commit is contained in:
Maksim Eltyshev
2020-05-05 01:30:06 +05:00
parent ba2017705b
commit b1d187476d
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: {