Skip to content

Commit 41b4f0a

Browse files
authored
ui: missing changes from #10115 (#10949)
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent fa85a75 commit 41b4f0a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ui/src/components/view/SearchView.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ export default {
445445
this.fields[apiKeyAccessIndex].loading = false
446446
}
447447
448+
if (arrayField.includes('usersource')) {
449+
const userSourceIndex = this.fields.findIndex(item => item.name === 'usersource')
450+
this.fields[userSourceIndex].loading = true
451+
this.fields[userSourceIndex].opts = this.fetchAvailableUserSourceTypes()
452+
this.fields[userSourceIndex].loading = false
453+
}
454+
448455
if (arrayField.includes('arch')) {
449456
const typeIndex = this.fields.findIndex(item => item.name === 'arch')
450457
this.fields[typeIndex].loading = true
@@ -1309,6 +1316,26 @@ export default {
13091316
})
13101317
})
13111318
},
1319+
fetchAvailableUserSourceTypes () {
1320+
return [
1321+
{
1322+
id: 'native',
1323+
name: 'label.native'
1324+
},
1325+
{
1326+
id: 'saml2',
1327+
name: 'label.saml'
1328+
},
1329+
{
1330+
id: 'saml2disabled',
1331+
name: 'label.saml.disabled'
1332+
},
1333+
{
1334+
id: 'ldap',
1335+
name: 'label.ldap'
1336+
}
1337+
]
1338+
},
13121339
onSearch (value) {
13131340
this.paramsFilter = {}
13141341
this.searchQuery = value

0 commit comments

Comments
 (0)