Initial implementation for subtasks

This commit is contained in:
Nicu Tofan 2018-06-18 23:25:56 +03:00
parent b627ced605
commit d59583915c
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7
13 changed files with 478 additions and 34 deletions

View file

@ -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({