mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 02:40:14 +01: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'}}
|
li: a.js-more {{_ 'cardMorePopup-title'}}
|
||||||
|
|
||||||
template(name="moveCardPopup")
|
template(name="moveCardPopup")
|
||||||
+boardLists
|
+boardsAndLists
|
||||||
|
|
||||||
template(name="copyCardPopup")
|
template(name="copyCardPopup")
|
||||||
label(for='copy-card-title') {{_ 'title'}}:
|
label(for='copy-card-title') {{_ 'title'}}:
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,11 @@ Cards.mutations({
|
||||||
},
|
},
|
||||||
|
|
||||||
move(listId, sortIndex) {
|
move(listId, sortIndex) {
|
||||||
const mutatedFields = {listId};
|
const list = Lists.findOne(listId);
|
||||||
|
const mutatedFields = {
|
||||||
|
listId,
|
||||||
|
boardId: list.boardId,
|
||||||
|
};
|
||||||
if (sortIndex) {
|
if (sortIndex) {
|
||||||
mutatedFields.sort = sortIndex;
|
mutatedFields.sort = sortIndex;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue