fix(editor): Making parameter input components label configurable (#5195)
fix(editor): Making parameter input component label configurable
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user