mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Fix migration. Replace old checklist-item sort algorithm.
This commit is contained in:
parent
bf7de463f1
commit
153960742c
7 changed files with 114 additions and 64 deletions
|
|
@ -47,6 +47,16 @@ ChecklistItems.mutations({
|
|||
toggleItem() {
|
||||
return { $set: { isFinished: !this.isFinished } };
|
||||
},
|
||||
move(checklistId, sortIndex) {
|
||||
const cardId = Checklists.findOne(checklistId).cardId;
|
||||
const mutatedFields = {
|
||||
cardId,
|
||||
checklistId,
|
||||
sort: sortIndex,
|
||||
};
|
||||
|
||||
return {$set: mutatedFields};
|
||||
}
|
||||
});
|
||||
|
||||
// Activities helper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue