Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix/10584 wrong message when no custom tool available in custom tool list (#11851)
crazywoolade3911e930e8
diff --git a/web/app/components/tools/add-tool-modal/empty.tsx b/web/app/components/tools/add-tool-modal/empty.tsxindex 051ae446d4c..794d2a585c1 100644--- a/web/app/components/tools/add-tool-modal/empty.tsx+++ b/web/app/components/tools/add-tool-modal/empty.tsx@@ -1,13 +1,19 @@+'use client'+import { useSearchParams } from 'next/navigation'import { useTranslation } from 'react-i18next'-const Empty = () => {const { t } = useTranslation()+ const searchParams = useSearchParams()return (<div className='flex flex-col items-center'><div className="shrink-0 w-[163px] h-[149px] bg-cover bg-no-repeat bg-[url('~@/app/components/tools/add-tool-modal/empty.png')]"></div>- <div className='mb-1 text-[13px] font-medium text-text-primary leading-[18px]'>{t('tools.addToolModal.emptyTitle')}</div>- <div className='text-[13px] text-text-tertiary leading-[18px]'>{t('tools.addToolModal.emptyTip')}</div>+ <div className='mb-1 text-[13px] font-medium text-text-primary leading-[18px]'>+ {t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTitle' : 'emptyTitleCustom'}`)}+ </div>+ <div className='text-[13px] text-text-tertiary leading-[18px]'>+ {t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTip' : 'emptyTipCustom'}`)}+ </div></div>)}diff --git a/web/i18n/en-US/tools.ts b/web/i18n/en-US/tools.tsindex f96ae8144e0..b1f278f9cea 100644--- a/web/i18n/en-US/tools.ts+++ b/web/i18n/en-US/tools.ts@@ -31,6 +31,8 @@ const translation = {manageInTools: 'Manage in Tools',emptyTitle: 'No workflow tool available',emptyTip: 'Go to "Workflow -> Publish as Tool"',+ emptyTitleCustom: 'No custom tool available',+ emptyTipCustom: 'Create a custom tool',},createTool: {title: 'Create Custom Tool',diff --git a/web/i18n/zh-Hans/tools.ts b/web/i18n/zh-Hans/tools.tsindex 1473fc23d38..a788ef0abee 100644--- a/web/i18n/zh-Hans/tools.ts+++ b/web/i18n/zh-Hans/tools.ts@@ -31,6 +31,8 @@ const translation = {manageInTools: '去工具列表管理',emptyTitle: '没有可用的工作流工具',emptyTip: '去 “工作流 -> 发布为工具” 添加',+ emptyTitleCustom: '没有可用的自定义工具',+ emptyTipCustom: '创建自定义工具',},createTool: {title: '创建自定义工具',