KEYCLOAK-15909 Add sort in tables

This commit is contained in:
Jerome Marchand 2020-10-08 21:21:01 +02:00 committed by Hynek Mlnařík
parent 9d0c7ba488
commit 108bd91edc
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="mapper in mappers | filter:search"> <tr ng-repeat="mapper in mappers | filter:search | orderBy:'name'">
<td><a href="#/realms/{{realm.realm}}/identity-provider-mappers/{{identityProvider.alias}}/mappers/{{mapper.id}}">{{mapper.name}}</a></td> <td><a href="#/realms/{{realm.realm}}/identity-provider-mappers/{{identityProvider.alias}}/mappers/{{mapper.id}}">{{mapper.name}}</a></td>
<td>{{mapperTypes[mapper.identityProviderMapper].category}}</td> <td>{{mapperTypes[mapper.identityProviderMapper].category}}</td>
<td>{{mapperTypes[mapper.identityProviderMapper].name}}</td> <td>{{mapperTypes[mapper.identityProviderMapper].name}}</td>

View file

@ -22,7 +22,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr data-ng-repeat="data in stats"> <tr data-ng-repeat="data in stats | orderBy:'clientId'">
<td><a href="#/realms/{{realm.realm}}/clients/{{data.id}}/sessions">{{data.clientId}}</a></td> <td><a href="#/realms/{{realm.realm}}/clients/{{data.id}}/sessions">{{data.clientId}}</a></td>
<td>{{data.active}}</td> <td>{{data.active}}</td>
<td>{{data.offline}}</td> <td>{{data.offline}}</td>