mirror of
https://github.com/wekan/wekan.git
synced 2026-03-04 21:00:16 +01:00
Added ability to change card's parent.
This commit is contained in:
parent
439d7c3dbc
commit
b7d508e8c4
5 changed files with 157 additions and 31 deletions
|
|
@ -327,10 +327,14 @@ Cards.helpers({
|
|||
},
|
||||
|
||||
parentCardName() {
|
||||
if (this.parentId === '') {
|
||||
return '';
|
||||
let result = '';
|
||||
if (this.parentId !== '') {
|
||||
const card = Cards.findOne(this.parentId);
|
||||
if (card) {
|
||||
result = card.title;
|
||||
}
|
||||
}
|
||||
return Cards.findOne(this.parentId).title;
|
||||
return result;
|
||||
},
|
||||
|
||||
parentListId() {
|
||||
|
|
@ -541,6 +545,11 @@ Cards.mutations({
|
|||
unsetSpentTime() {
|
||||
return {$unset: {spentTime: '', isOvertime: false}};
|
||||
},
|
||||
|
||||
setParentId(parentId) {
|
||||
return {$set: {parentId}};
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue