mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 08:08:49 +01:00
Add two way binding of checklists
This commit is contained in:
parent
b2e175ba8c
commit
49c415f023
4 changed files with 37 additions and 13 deletions
|
|
@ -74,8 +74,10 @@ BlazeComponent.extendComponent({
|
|||
event.preventDefault();
|
||||
const textarea = this.find('textarea.js-add-checklist-item');
|
||||
const title = textarea.value.trim();
|
||||
const cardId = this.currentData().cardId;
|
||||
let cardId = this.currentData().cardId;
|
||||
const card = Cards.findOne(cardId);
|
||||
if (card.isImported())
|
||||
cardId = card.importedId;
|
||||
|
||||
if (title) {
|
||||
Checklists.insert({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue