diff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsx index 39da653a43..347ea14248 100644 --- a/web/app/components/tools/mcp/detail/content.tsx +++ b/web/app/components/tools/mcp/detail/content.tsx @@ -78,9 +78,9 @@ const MCPDetailContent: FC = ({ }) const [isShowUpdateModal, { - setTrue: showUpdateModal, - setFalse: hideUpdateModal, - }] = useBoolean(false) + setTrue: showUpdateModal, + setFalse: hideUpdateModal, + }] = useBoolean(false) const [isShowDeleteConfirm, { setTrue: showDeleteConfirm, @@ -144,7 +144,7 @@ const MCPDetailContent: FC = ({ useEffect(() => { if (isCreation) handleAuthorize() - // eslint-disable-next-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps }, []) if (!detail) @@ -298,7 +298,8 @@ const MCPDetailContent: FC = ({ {isShowUpdateConfirm && ( diff --git a/web/i18n/en-US/tools.ts b/web/i18n/en-US/tools.ts index 9669476081..1988e14bda 100644 --- a/web/i18n/en-US/tools.ts +++ b/web/i18n/en-US/tools.ts @@ -193,6 +193,8 @@ const translation = { updateTools: 'Updating Tools...', toolsEmpty: 'Tools not loaded', getTools: 'Get tools', + toolUpdateConfirmTitle: 'Update Tool List', + toolUpdateConfirmContent: 'Updating the tool list may affect existing apps. Do you wish to proceed?', toolsNum: '{{count}} tools included', onlyTool: '1 tool included', identifier: 'Server Identifier (Click to Copy)', diff --git a/web/i18n/zh-Hans/tools.ts b/web/i18n/zh-Hans/tools.ts index 8f2eb94c9b..fa2ee2ac1e 100644 --- a/web/i18n/zh-Hans/tools.ts +++ b/web/i18n/zh-Hans/tools.ts @@ -193,6 +193,8 @@ const translation = { updateTools: '更新工具中...', toolsEmpty: '工具未加载', getTools: '获取工具', + toolUpdateConfirmTitle: '更新工具列表', + toolUpdateConfirmContent: '更新工具列表可能影响现有应用。您想继续吗?', toolsNum: '包含 {{count}} 个工具', onlyTool: '包含 1 个工具', identifier: '服务器标识符 (点击复制)',