[KEYCLOAK-1356] Order the roles in a alphabetical way
This commit is contained in:
parent
ea544c639e
commit
5d0b6400df
3 changed files with 9 additions and 9 deletions
|
@ -17,7 +17,7 @@
|
|||
<select id="available" class="form-control" multiple size="5"
|
||||
ng-multiple="true"
|
||||
ng-model="selectedRealmRoles"
|
||||
ng-options="r for r in availableRealmRoles">
|
||||
ng-options="r for r in availableRealmRoles | orderBy:'toString()'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="addRealmDefaultRole()" tooltip="Assign role" tooltip-placement="right">
|
||||
Add selected <i class="fa fa-angle-double-right"></i>
|
||||
|
@ -29,7 +29,7 @@
|
|||
<select id="assigned" class="form-control" multiple size=5
|
||||
ng-multiple="true"
|
||||
ng-model="selectedRealmDefRoles"
|
||||
ng-options="r for r in realm.defaultRoles">
|
||||
ng-options="r for r in realm.defaultRoles | orderBy:'toString()'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="deleteRealmDefaultRole()" tooltip="Unassign role" tooltip-placement="left">
|
||||
<i class="fa fa-angle-double-left"></i> Remove selected
|
||||
|
@ -55,7 +55,7 @@
|
|||
<select id="available-client" class="form-control" multiple size="5"
|
||||
ng-multiple="true"
|
||||
ng-model="selectedClientRoles"
|
||||
ng-options="r for r in availableClientRoles">
|
||||
ng-options="r for r in availableClientRoles | orderBy:'toString()'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="addClientDefaultRole()" tooltip="Assign role" tooltip-placement="right">
|
||||
Add selected <i class="fa fa-angle-double-right"></i>
|
||||
|
@ -67,7 +67,7 @@
|
|||
<select id="assigned-client" class="form-control" multiple size=5
|
||||
ng-multiple="true"
|
||||
ng-model="selectedClientDefRoles"
|
||||
ng-options="r for r in client.defaultRoles">
|
||||
ng-options="r for r in client.defaultRoles | orderBy:'toString()'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="rmClientDefaultRole()" tooltip="Unassign role" tooltip-placement="left">
|
||||
<i class="fa fa-angle-double-left"></i> Remove selected
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<select id="available" class="form-control" multiple size="5"
|
||||
ng-multiple="true"
|
||||
ng-model="selectedRealmRoles"
|
||||
ng-options="r.name for r in realmRoles">
|
||||
ng-options="r.name for r in realmRoles | orderBy:'name'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="addRealmRole()" tooltip="Associate role" tooltip-placement="right">
|
||||
Add selected <i class="fa fa-angle-double-right"></i>
|
||||
|
@ -76,7 +76,7 @@
|
|||
<select id="assigned" class="form-control" multiple size=5
|
||||
ng-multiple="true"
|
||||
ng-model="selectedRealmMappings"
|
||||
ng-options="r.name for r in realmMappings">
|
||||
ng-options="r.name for r in realmMappings | orderBy:'name'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="deleteRealmRole()" tooltip="Disassociate role" tooltip-placement="left">
|
||||
<i class="fa fa-angle-double-left"></i> Remove selected
|
||||
|
@ -103,7 +103,7 @@
|
|||
<select id="available-client" class="form-control" multiple size="5"
|
||||
ng-multiple="true"
|
||||
ng-model="selectedClientRoles"
|
||||
ng-options="r.name for r in clientRoles">
|
||||
ng-options="r.name for r in clientRoles | orderBy:'name'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="addClientRole()" tooltip="Associate role" tooltip-placement="right">
|
||||
Add selected <i class="fa fa-angle-right"></i>
|
||||
|
@ -115,7 +115,7 @@
|
|||
<select id="assigned-client" class="form-control" multiple size=5
|
||||
ng-multiple="true"
|
||||
ng-model="selectedClientMappings"
|
||||
ng-options="r.name for r in clientMappings">
|
||||
ng-options="r.name for r in clientMappings | orderBy:'name'">
|
||||
</select>
|
||||
<button class="btn btn-default" type="submit" ng-click="deleteClientRole()" tooltip="Disassociate role" tooltip-placement="left">
|
||||
<i class="fa fa-angle-left"></i> Remove selected
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="role in roles | filter:{name: searchQuery}">
|
||||
<tr ng-repeat="role in roles | orderBy:'name' | filter:{name: searchQuery}">
|
||||
<td><a href="#/realms/{{realm.realm}}/roles/{{role.id}}">{{role.name}}</a></td>
|
||||
<td>{{role.composite}}</td>
|
||||
<td>{{role.description}}</td>
|
||||
|
|
Loading…
Reference in a new issue