KEYCLOAK-15186 Sort user federation table
This commit is contained in:
parent
a92bf0c3be
commit
bed664e4fe
2 changed files with 3 additions and 2 deletions
|
@ -839,8 +839,9 @@ module.controller('UserFederationCtrl', function($scope, $location, $route, real
|
|||
$scope.getInstancePriority = function(instance) {
|
||||
if (!instance.config['priority']) {
|
||||
console.log('getInstancePriority is undefined');
|
||||
return -1;
|
||||
}
|
||||
return instance.config['priority'][0];
|
||||
return +instance.config['priority'][0];
|
||||
}
|
||||
|
||||
Components.query({realm: realm.realm,
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="instance in instances">
|
||||
<tr ng-repeat="instance in instances | orderBy:[getInstancePriority, getInstanceName]">
|
||||
<td><a href="#{{getInstanceLink(instance)}}">{{getInstanceName(instance)}}</a></td>
|
||||
<td>{{isProviderEnabled(instance)}}</td>
|
||||
<td>{{getInstanceProvider(instance) | capitalize}}</td>
|
||||
|
|
Loading…
Reference in a new issue