mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Add remaining of checklist feature code
This commit is contained in:
parent
1cf9b1be4e
commit
335b91f0a4
2 changed files with 17 additions and 2 deletions
|
|
@ -72,3 +72,18 @@ BlazeComponent.extendComponent({
|
|||
}];
|
||||
},
|
||||
}).register('checklists');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
toggleItem() {
|
||||
const checklist = this.currentData().checklist;
|
||||
const item = this.currentData().item;
|
||||
if (checklist && item && item._id) {
|
||||
checklist.toggleItem(item._id);
|
||||
}
|
||||
},
|
||||
events() {
|
||||
return [{
|
||||
'click .item .check-box': this.toggleItem,
|
||||
}];
|
||||
},
|
||||
}).register('itemDetail');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue