Move cards cross boards

This commit is contained in:
Ghassen Rjab 2017-11-14 03:03:29 +01:00
parent 59f4daf91e
commit 5a37ba0d9f
2 changed files with 6 additions and 2 deletions

View file

@ -131,7 +131,7 @@ template(name="cardDetailsActionsPopup")
li: a.js-more {{_ 'cardMorePopup-title'}}
template(name="moveCardPopup")
+boardLists
+boardsAndLists
template(name="copyCardPopup")
label(for='copy-card-title') {{_ 'title'}}:

View file

@ -207,7 +207,11 @@ Cards.mutations({
},
move(listId, sortIndex) {
const mutatedFields = {listId};
const list = Lists.findOne(listId);
const mutatedFields = {
listId,
boardId: list.boardId,
};
if (sortIndex) {
mutatedFields.sort = sortIndex;
}