mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Cards, custom fields are displayed in alphabetic order
- until now the order is undefined, it's different from card to card, it's the order in which the custom fields were added to the card.
This commit is contained in:
parent
87e848beae
commit
163e4c8060
1 changed files with 3 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ Cards.helpers({
|
|||
|
||||
// match right definition to each field
|
||||
if (!this.customFields) return [];
|
||||
return this.customFields.map(customField => {
|
||||
let ret = this.customFields.map(customField => {
|
||||
const definition = definitions.find(definition => {
|
||||
return definition._id === customField._id;
|
||||
});
|
||||
|
|
@ -676,6 +676,8 @@ Cards.helpers({
|
|||
definition,
|
||||
};
|
||||
});
|
||||
ret.sort((a, b) => a.definition.name.localeCompare(b.definition.name));
|
||||
return ret;
|
||||
},
|
||||
|
||||
colorClass() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue