Skip to content

Commit

Permalink
AO-891: Fixed sorting users list
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikNoga committed Nov 5, 2024
1 parent 6a41fb1 commit b68c074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/admin-user-list/user-list.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
* Holds options for sorting user list.
*/
vm.options = {
'adminUserList.firstName': ['firstName'],
'adminUserList.lastName': ['lastName'],
'adminUserList.username': ['username']
'adminUserList.firstName': ['firstName,asc'],
'adminUserList.lastName': ['lastName,asc'],
'adminUserList.username': ['username,asc']
};

/**
Expand Down
3 changes: 3 additions & 0 deletions src/admin-user-list/user-list.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
label: 'adminUserList.users.label',
url: '/users?firstName&lastName&email&usersPage&usersSize&username&sort',
controller: 'UserListController',
params: {
sort: ['username,asc']
},
templateUrl: 'admin-user-list/user-list.html',
controllerAs: 'vm',
accessRights: [ADMINISTRATION_RIGHTS.USERS_MANAGE],
Expand Down

0 comments on commit b68c074

Please sign in to comment.