ui: missing changes from #10115 (#10949)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2025-06-04 23:43:43 +05:30 committed by GitHub
parent fa85a75bc8
commit 41b4f0afd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -445,6 +445,13 @@ export default {
this.fields[apiKeyAccessIndex].loading = false
}
if (arrayField.includes('usersource')) {
const userSourceIndex = this.fields.findIndex(item => item.name === 'usersource')
this.fields[userSourceIndex].loading = true
this.fields[userSourceIndex].opts = this.fetchAvailableUserSourceTypes()
this.fields[userSourceIndex].loading = false
}
if (arrayField.includes('arch')) {
const typeIndex = this.fields.findIndex(item => item.name === 'arch')
this.fields[typeIndex].loading = true
@ -1309,6 +1316,26 @@ export default {
})
})
},
fetchAvailableUserSourceTypes () {
return [
{
id: 'native',
name: 'label.native'
},
{
id: 'saml2',
name: 'label.saml'
},
{
id: 'saml2disabled',
name: 'label.saml.disabled'
},
{
id: 'ldap',
name: 'label.ldap'
}
]
},
onSearch (value) {
this.paramsFilter = {}
this.searchQuery = value