mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01:00
Switch from subtasks to cards in model
This commit is contained in:
parent
fd465fbb60
commit
adb7f5b2ca
1 changed files with 3 additions and 3 deletions
|
|
@ -221,15 +221,15 @@ Cards.helpers({
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasks() {
|
subtasks() {
|
||||||
return Subtasks.find({cardId: this._id}, {sort: { sort: 1 } });
|
return Cards.find({parentId: this._id}, {sort: { sort: 1 } });
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasksCount() {
|
subtasksCount() {
|
||||||
return Subtasks.find({cardId: this._id}).count();
|
return Cards.find({parentId: this._id}).count();
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasksFinishedCount() {
|
subtasksFinishedCount() {
|
||||||
return Subtasks.find({cardId: this._id, isFinished: true}).count();
|
return Cards.find({parentId: this._id, archived: true}).count();
|
||||||
},
|
},
|
||||||
|
|
||||||
subtasksFinished() {
|
subtasksFinished() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue