diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 77d6815a452..685e36e26a7 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -20,7 +20,9 @@ " :title=" applicationDetails?.work_flow?.nodes?.find((v: any) => v.id === 'base-node')?.properties - ?.user_input_field_list_setting?.menu_title + ?.user_input_field_list_setting?.menu_title || + applicationDetails?.work_flow?.nodes?.find((v: any) => v.id === 'base-node')?.properties + ?.user_input_config?.title " :application="applicationDetails" :type="type" diff --git a/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue b/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue index 84973935694..069930b6a78 100644 --- a/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue +++ b/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue @@ -115,6 +115,7 @@ function openChangeTitleDialog() { inputFieldConfig.value, inputFieldList.value, props.nodeModel.properties.user_input_field_list_setting, + props.nodeModel.properties.user_input_config?.title, ) } diff --git a/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue b/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue index 6d45e2ba1a9..c38a00ab355 100644 --- a/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue +++ b/ui/src/workflow/nodes/base-node/component/UserInputTitleDialog.vue @@ -61,7 +61,7 @@ const fieldOptions = ref([]) const form = ref({ exposed_fields: [], - menu_title: t('common.moreSettings'), + menu_title: t('common.moreSettings'), }) const rules = reactive({ @@ -87,10 +87,10 @@ const getFieldLabel = (item: any) => { return item.field } -const open = (row: any, fields?: any[], setting?: any) => { +const open = (row: any, fields?: any[], setting?: any, legacyTitle?: string) => { form.value = { exposed_fields: setting?.exposed_fields || [], - menu_title: setting?.menu_title || t('common.moreSettings'), + menu_title: setting?.menu_title || legacyTitle || t('common.moreSettings'), } fieldOptions.value = fields || [] dialogVisible.value = true diff --git a/ui/src/workflow/nodes/knowledge-base-node/component/UserInputFieldTable.vue b/ui/src/workflow/nodes/knowledge-base-node/component/UserInputFieldTable.vue index cace54dc196..dc2168088d8 100644 --- a/ui/src/workflow/nodes/knowledge-base-node/component/UserInputFieldTable.vue +++ b/ui/src/workflow/nodes/knowledge-base-node/component/UserInputFieldTable.vue @@ -139,7 +139,7 @@ function refreshFieldList(data: any, index: any) { } function refreshFieldTitle(data: any) { - inputFieldConfig.value = data + inputFieldConfig.value = { ...inputFieldConfig.value, title: data.menu_title } UserInputTitleDialogRef.value.close() }