fix(editor): Making parameter input components label configurable (#5195)

fix(editor): Making parameter input component label configurable
This commit is contained in:
Csaba Tuncsik
2023-01-20 17:07:28 +01:00
committed by GitHub
parent 736e700902
commit 9ce526e784
4 changed files with 30 additions and 6 deletions

View File

@@ -15,6 +15,7 @@
:value="credentialData[parameter.name]"
:documentationUrl="documentationUrl"
:showValidationWarnings="showValidationWarnings"
:label="label"
eventSource="credentials"
@change="valueChanged"
/>
@@ -24,9 +25,8 @@
<script lang="ts">
import Vue from 'vue';
import { IUpdateInformation } from '../../Interface';
import { IParameterLabel } from 'n8n-workflow';
import { IUpdateInformation } from '@/Interface';
import ParameterInputExpanded from '../ParameterInputExpanded.vue';
export default Vue.extend({
@@ -40,6 +40,13 @@ export default Vue.extend({
components: {
ParameterInputExpanded,
},
data(): { label: IParameterLabel } {
return {
label: {
size: 'medium',
},
};
},
methods: {
valueChanged(parameterData: IUpdateInformation) {
const name = parameterData.name.split('.').pop();