mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
⚡ Set new credentials dropdown to open by default (#1379)
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user