Add expression support to credentials

This commit is contained in:
Jan Oberhauser
2021-01-24 13:33:57 +01:00
parent b33a5fcd13
commit 1dedb3f4b8
6 changed files with 56 additions and 27 deletions

View File

@@ -30,7 +30,7 @@
</el-tooltip>
</el-col>
<el-col :span="18">
<parameter-input :parameter="parameter" :value="propertyValue[parameter.name]" :path="parameter.name" :isCredential="true" @valueChanged="valueChanged" />
<parameter-input :parameter="parameter" :value="propertyValue[parameter.name]" :path="parameter.name" :isCredential="true" :displayOptions="true" @valueChanged="valueChanged" />
</el-col>
</el-row>
</div>

View File

@@ -1,6 +1,6 @@
<template>
<div v-if="credentialTypesNodeDescriptionDisplayed.length" class="node-credentials">
<credentials-edit :dialogVisible="credentialNewDialogVisible" :editCredentials="editCredentials" :setCredentialType="addType" :nodesInit="nodesInit" @closeDialog="closeCredentialNewDialog" @credentialsCreated="credentialsCreated" @credentialsUpdated="credentialsUpdated"></credentials-edit>
<credentials-edit :dialogVisible="credentialNewDialogVisible" :editCredentials="editCredentials" :setCredentialType="addType" :nodesInit="nodesInit" :node="node" @closeDialog="closeCredentialNewDialog" @credentialsCreated="credentialsCreated" @credentialsUpdated="credentialsUpdated"></credentials-edit>
<div class="headline">
Credentials

View File

@@ -240,10 +240,6 @@ export default mixins(
return returnValues.join('|');
},
node (): INodeUi | null {
if (this.isCredential === true) {
return null;
}
return this.$store.getters.activeNode;
},
displayTitle (): string {
@@ -314,7 +310,7 @@ export default mixins(
return false;
},
expressionValueComputed (): NodeParameterValue | null {
if (this.isCredential === true || this.node === null) {
if (this.node === null) {
return null;
}