mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Move cards cross boards
This commit is contained in:
parent
59f4daf91e
commit
5a37ba0d9f
2 changed files with 6 additions and 2 deletions
|
@ -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'}}:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue