Skip to content

Commit

Permalink
[BP] Sort the portals by label, not by name (identifier) (#7424)
Browse files Browse the repository at this point in the history
* Sort the portals by label, not by name

* Main sort portal by label update (#13)

* Remove old password field for admins (#7417)

Using an administrator user, the old password field can be left empty.
Removing it as it's not required when and admin reset the password of other user.

* Portal switcher - update label by language sorting

* Revert the changes to `users.html`

---------

Co-authored-by: Jose García <josegar74@gmail.com>
  • Loading branch information
MichelGabriel and josegar74 committed Oct 12, 2023
1 parent 48d2981 commit 0082139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
if (scope.showPortalSwitcher) {
getPortals();
}

scope.sortByLabel = function (portal) {
return portal.label[scope.lang];
};
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<li
class="gn-menuitem-xs"
role="menuitem"
data-ng-repeat="p in portals | filter: {listableInHeaderSelector: true} |orderBy:'name'"
data-ng-repeat="p in portals | filter: {listableInHeaderSelector: true} |orderBy:sortByLabel"
>
<a href="../../{{p.uuid}}/{{lang}}/catalog.search">
<img
Expand Down

0 comments on commit 0082139

Please sign in to comment.