diff --git a/ui/src/components/header/SamlDomainSwitcher.vue b/ui/src/components/header/SamlDomainSwitcher.vue index c1931943835..30c15833719 100644 --- a/ui/src/components/header/SamlDomainSwitcher.vue +++ b/ui/src/components/header/SamlDomainSwitcher.vue @@ -22,6 +22,11 @@ :loading="loading" :defaultValue="currentAccount" :value="currentAccount" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" @change="changeAccount" @focus="fetchData" > diff --git a/ui/src/components/view/DedicateDomain.vue b/ui/src/components/view/DedicateDomain.vue index 3cdd80434ad..0ae08d51c2f 100644 --- a/ui/src/components/view/DedicateDomain.vue +++ b/ui/src/components/view/DedicateDomain.vue @@ -21,7 +21,15 @@

{{ $t('label.domain') }}*

{{ $t('label.required') }}

- + {{ domain.path || domain.name || domain.description }} @@ -30,7 +38,14 @@

{{ $t('label.account') }}

- + {{ account.name }} diff --git a/ui/src/components/view/FormView.vue b/ui/src/components/view/FormView.vue index 020f280b540..76a16bec69a 100644 --- a/ui/src/components/view/FormView.vue +++ b/ui/src/components/view/FormView.vue @@ -52,8 +52,11 @@ rules: [{ required: field.required, message: `${this.$t('message.error.select')}` }] }]" :placeholder="field.description" - - > + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" > {{ opt.name || opt.description }} diff --git a/ui/src/components/view/SearchView.vue b/ui/src/components/view/SearchView.vue index 29e19024ce6..86ffe88cdca 100644 --- a/ui/src/components/view/SearchView.vue +++ b/ui/src/components/view/SearchView.vue @@ -58,6 +58,11 @@ v-decorator="[field.name, { initialValue: fieldValues[field.name] || null }]" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" :loading="field.loading"> + @change="changeFilter" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" > {{ $t('label.all') }} @@ -215,6 +220,11 @@ }]" :placeholder="field.description" :autoFocus="fieldIndex === firstIndex" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" > {{ }} @@ -274,6 +284,11 @@ }]" :placeholder="field.description" :autoFocus="fieldIndex === firstIndex" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" > {{ opt.name && opt.type ? opt.name + ' (' + opt.type + ')' : opt.name || opt.description }} diff --git a/ui/src/views/auth/Login.vue b/ui/src/views/auth/Login.vue index 89d11cff7c2..53099644ab1 100644 --- a/ui/src/views/auth/Login.vue +++ b/ui/src/views/auth/Login.vue @@ -46,7 +46,12 @@ initialValue: (server.apiHost || '') + server.apiBase } ]" - @change="onChangeServer"> + @change="onChangeServer" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" > {{ item.name }} @@ -113,7 +118,12 @@ initialValue: (server.apiHost || '') + server.apiBase } ]" - @change="onChangeServer"> + @change="onChangeServer" + showSearch + optionFilterProp="children" + :filterOption="(input, option) => { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }" > {{ item.name }} @@ -121,7 +131,13 @@ - + {{ idp.orgName }} diff --git a/ui/src/views/compute/AssignInstance.vue b/ui/src/views/compute/AssignInstance.vue index 23da3e2e85d..085c53fae79 100644 --- a/ui/src/views/compute/AssignInstance.vue +++ b/ui/src/views/compute/AssignInstance.vue @@ -29,7 +29,15 @@

{{ $t('label.accounttype') }}

- + {{ $t('label.account') }} {{ $t('label.project') }} @@ -37,7 +45,15 @@

*{{ $t('label.domain') }}

- + {{ domain.path || domain.name || domain.description }} @@ -47,7 +63,14 @@