mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Take archived status into consideration for subtasks
This commit is contained in:
parent
5a023e4315
commit
6ab1cbb341
1 changed files with 18 additions and 3 deletions
|
@ -221,15 +221,30 @@ Cards.helpers({
|
|||
},
|
||||
|
||||
subtasks() {
|
||||
return Cards.find({parentId: this._id}, {sort: { sort: 1 } });
|
||||
return Cards.find({
|
||||
parentId: this._id,
|
||||
archived: false,
|
||||
}, {sort: { sort: 1 } });
|
||||
},
|
||||
|
||||
allSubtasks() {
|
||||
return Cards.find({
|
||||
parentId: this._id,
|
||||
archived: false,
|
||||
}, {sort: { sort: 1 } });
|
||||
},
|
||||
|
||||
subtasksCount() {
|
||||
return Cards.find({parentId: this._id}).count();
|
||||
return Cards.find({
|
||||
parentId: this._id,
|
||||
archived: false,
|
||||
}).count();
|
||||
},
|
||||
|
||||
subtasksFinishedCount() {
|
||||
return Cards.find({parentId: this._id, archived: true}).count();
|
||||
return Cards.find({
|
||||
parentId: this._id,
|
||||
archived: true}).count();
|
||||
},
|
||||
|
||||
subtasksFinished() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue