diff --git a/ui/src/components/ai-chat/component/user-form/index.vue b/ui/src/components/ai-chat/component/user-form/index.vue index 6b2ac596f..2744102af 100644 --- a/ui/src/components/ai-chat/component/user-form/index.vue +++ b/ui/src/components/ai-chat/component/user-form/index.vue @@ -16,7 +16,7 @@ - {{ $t('chat.userInput') }} + {{ inputFieldConfig.title }} @@ -63,6 +63,7 @@ const props = defineProps<{ const dynamicsFormRefresh = ref(0) const inputFieldList = ref([]) const apiInputFieldList = ref([]) +const inputFieldConfig = ref({ title: t('chat.userInput') }) const showUserInput = ref(true) const emit = defineEmits(['update:api_form_data', 'update:form_data']) @@ -260,6 +261,11 @@ function handleInputFieldList() { } }) : [] + + // + inputFieldConfig.value = v.properties.user_input_config?.title + ? v.properties.user_input_config + : { title: t('chat.userInput') } }) } /** diff --git a/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue b/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue index 703c66490..1a93ac318 100644 --- a/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue +++ b/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue @@ -1,12 +1,23 @@ diff --git a/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue b/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue new file mode 100644 index 000000000..b05b0529e --- /dev/null +++ b/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue @@ -0,0 +1,83 @@ + + +