mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Merge pull request #3442 from mfilser/master
Cards, custom fields are displayed in alphabetic order
This commit is contained in:
commit
2714032e77
1 changed files with 5 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ Cards.helpers({
|
||||||
|
|
||||||
// match right definition to each field
|
// match right definition to each field
|
||||||
if (!this.customFields) return [];
|
if (!this.customFields) return [];
|
||||||
return this.customFields.map(customField => {
|
const ret = this.customFields.map(customField => {
|
||||||
const definition = definitions.find(definition => {
|
const definition = definitions.find(definition => {
|
||||||
return definition._id === customField._id;
|
return definition._id === customField._id;
|
||||||
});
|
});
|
||||||
|
|
@ -715,6 +715,10 @@ Cards.helpers({
|
||||||
definition,
|
definition,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
if (ret.definition !== undefined) {
|
||||||
|
ret.sort((a, b) => a.definition.name.localeCompare(b.definition.name));
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
},
|
},
|
||||||
|
|
||||||
colorClass() {
|
colorClass() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue