mirror of
https://github.com/wekan/wekan.git
synced 2026-03-03 12:20:15 +01:00
Initial implementation for subtasks
This commit is contained in:
parent
b627ced605
commit
d59583915c
13 changed files with 478 additions and 34 deletions
|
|
@ -41,13 +41,7 @@ Subtasks.attachSchema(new SimpleSchema({
|
|||
}));
|
||||
|
||||
Subtasks.helpers({
|
||||
isFinished() {
|
||||
return 0 !== this.itemCount() && this.itemCount() === this.finishedCount();
|
||||
},
|
||||
itemIndex(itemId) {
|
||||
const items = self.findOne({_id : this._id}).items;
|
||||
return _.pluck(items, '_id').indexOf(itemId);
|
||||
},
|
||||
// ...
|
||||
});
|
||||
|
||||
Subtasks.allow({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue