This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 41b4f0afd53 ui: missing changes from #10115 (#10949)
41b4f0afd53 is described below
commit 41b4f0afd5321e987973b615b566365e48228c6e
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Jun 4 23:43:43 2025 +0530
ui: missing changes from #10115 (#10949)
Signed-off-by: Abhishek Kumar <[email protected]>
---
ui/src/components/view/SearchView.vue | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
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