mirror of
https://github.com/wekan/wekan.git
synced 2026-01-02 23:58:49 +01:00
Trello custom field import basically working
This commit is contained in:
parent
c89a0eb694
commit
b793716e85
5 changed files with 59 additions and 23 deletions
|
|
@ -78,7 +78,7 @@ CardCustomField.register('cardCustomField');
|
|||
},
|
||||
];
|
||||
}
|
||||
}.register('cardCustomField-checkbox'));
|
||||
}.register('cardCustomField-number'));
|
||||
|
||||
// cardCustomField-checkbox
|
||||
(class extends CardCustomField {
|
||||
|
|
@ -86,12 +86,16 @@ CardCustomField.register('cardCustomField');
|
|||
super.onCreated();
|
||||
}
|
||||
|
||||
isNull() {
|
||||
return !this.data().value;
|
||||
}
|
||||
|
||||
events() {
|
||||
return [
|
||||
{
|
||||
'submit .js-card-customfield-checkbox'(event) {
|
||||
event.preventDefault();
|
||||
const value = this.find('input').value !== '';
|
||||
const value = this.find('input').checked;
|
||||
this.card.setCustomField(this.customFieldId, value);
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue