mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
⚡ Set new credentials dropdown to open by default (#1379)
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
parent
9271e73777
commit
b9fbd2c0bb
|
@ -30,7 +30,7 @@
|
||||||
Credential type:
|
Credential type:
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<el-select v-model="credentialType" filterable placeholder="Select Type" size="small">
|
<el-select v-model="credentialType" filterable placeholder="Select Type" size="small" ref="credentialsDropdown">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in credentialTypes"
|
v-for="item in credentialTypes"
|
||||||
:key="item.name"
|
:key="item.name"
|
||||||
|
@ -198,6 +198,9 @@ export default mixins(
|
||||||
|
|
||||||
this.credentialData = currentCredentials;
|
this.credentialData = currentCredentials;
|
||||||
} else {
|
} else {
|
||||||
|
Vue.nextTick(() => {
|
||||||
|
(this.$refs.credentialsDropdown as HTMLDivElement).focus();
|
||||||
|
});
|
||||||
if (this.credentialType || this.setCredentialType) {
|
if (this.credentialType || this.setCredentialType) {
|
||||||
const credentialType = this.$store.getters.credentialType(this.credentialType || this.setCredentialType);
|
const credentialType = this.$store.getters.credentialType(this.credentialType || this.setCredentialType);
|
||||||
if (credentialType === null) {
|
if (credentialType === null) {
|
||||||
|
|
Loading…
Reference in a new issue