mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
show custom fields on cards but still with dummy value
This commit is contained in:
parent
733b14dcd8
commit
6ff89b43b6
5 changed files with 89 additions and 30 deletions
|
|
@ -190,6 +190,27 @@ Cards.helpers({
|
|||
return _.pluck(this.customFields, '_id').indexOf(customFieldId);
|
||||
},
|
||||
|
||||
// customFields with definitions
|
||||
customFieldsWD() {
|
||||
|
||||
// get all definitions
|
||||
const definitions = CustomFields.find({
|
||||
boardId: this.boardId,
|
||||
}).fetch();
|
||||
|
||||
// match right definition to each field
|
||||
return this.customFields.map((customField) => {
|
||||
return {
|
||||
_id: customField._id,
|
||||
value: customField.value,
|
||||
definition: definitions.find((definition) => {
|
||||
return definition._id == customField._id;
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
absoluteUrl() {
|
||||
const board = this.board();
|
||||
return FlowRouter.url('card', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue