mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
sort list idps by alphabest (#5599)
This commit is contained in:
parent
e63234e8fc
commit
298774e020
@ -202,6 +202,11 @@ export default {
|
|||||||
api('listIdps').then(response => {
|
api('listIdps').then(response => {
|
||||||
if (response) {
|
if (response) {
|
||||||
this.idps = response.listidpsresponse.idp || []
|
this.idps = response.listidpsresponse.idp || []
|
||||||
|
this.idps.sort(function (a, b) {
|
||||||
|
if (a.orgName < b.orgName) { return -1 }
|
||||||
|
if (a.orgName > b.orgName) { return 1 }
|
||||||
|
return 0
|
||||||
|
})
|
||||||
this.selectedIdp = this.idps[0].id || ''
|
this.selectedIdp = this.idps[0].id || ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user