mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
All boards view (boardsList) - sort Organizations and Teams by Display Name
This commit is contained in:
parent
8e6bd81abe
commit
cec05dae47
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
teamsDatas() {
|
||||
if(Meteor.user().teams)
|
||||
return Meteor.user().teams;
|
||||
return Meteor.user().teams.sort((a, b) => a.teamDisplayName.localeCompare(b.teamDisplayName));
|
||||
else
|
||||
return [];
|
||||
},
|
||||
|
@ -101,7 +101,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
orgsDatas() {
|
||||
if(Meteor.user().orgs)
|
||||
return Meteor.user().orgs;
|
||||
return Meteor.user().orgs.sort((a, b) => a.orgDisplayName.localeCompare(b.orgDisplayName));
|
||||
else
|
||||
return [];
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue