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

@@ -6,6 +6,7 @@
:showTooltip="focused"
:showOptions="menuExpanded"
:data-test-id="parameter.name"
:size="label.size"
>
<template #options>
<parameter-options
@@ -60,7 +61,7 @@ import ParameterOptions from './ParameterOptions.vue';
import Vue, { PropType } from 'vue';
import ParameterInputWrapper from './ParameterInputWrapper.vue';
import { isValueExpression } from '@/utils';
import { INodeParameterResourceLocator, INodeProperties } from 'n8n-workflow';
import { INodeParameterResourceLocator, INodeProperties, IParameterLabel } from 'n8n-workflow';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows';
@@ -84,6 +85,12 @@ export default Vue.extend({
eventSource: {
type: String,
},
label: {
type: Object as PropType<IParameterLabel>,
default: () => ({
size: 'small',
}),
},
},
data() {
return {