mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 15:11:48 +01:00
text custom fields are now editable using inlinedForm
This commit is contained in:
parent
6ff89b43b6
commit
caad952bc1
3 changed files with 43 additions and 10 deletions
|
|
@ -279,12 +279,10 @@ Cards.mutations({
|
|||
},
|
||||
|
||||
assignCustomField(customFieldId) {
|
||||
console.log("assignCustomField", customFieldId);
|
||||
return {$addToSet: {customFields: {_id: customFieldId, value: null}}};
|
||||
},
|
||||
|
||||
unassignCustomField(customFieldId) {
|
||||
console.log("unassignCustomField", customFieldId);
|
||||
return {$pull: {customFields: {_id: customFieldId}}};
|
||||
},
|
||||
|
||||
|
|
@ -296,6 +294,16 @@ Cards.mutations({
|
|||
}
|
||||
},
|
||||
|
||||
setCustomField(customFieldId, value) {
|
||||
// todo
|
||||
const index = this.customFieldIndex(customFieldId);
|
||||
if (index > -1) {
|
||||
var update = {$set: {}};
|
||||
update.$set["customFields." + index + ".value"] = value;
|
||||
return update;
|
||||
}
|
||||
},
|
||||
|
||||
setCover(coverId) {
|
||||
return {$set: {coverId}};
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue