diff --git a/ui/src/components/view/SearchView.vue b/ui/src/components/view/SearchView.vue index f47c9e783bb..1069ae09c2e 100644 --- a/ui/src/components/view/SearchView.vue +++ b/ui/src/components/view/SearchView.vue @@ -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