From 0159a1adde650c1aa79a50afa5e039da2ead0961 Mon Sep 17 00:00:00 2001 From: mushan0x0 Date: Thu, 25 Jan 2024 00:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Automatically=20fill=20in?= =?UTF-8?q?=20the=20wrong=20password=20(#1144)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/settings/common/Common.tsx | 7 ++++++- src/app/settings/llm/LLM/index.tsx | 1 + src/features/Conversation/Error/ApiKeyForm.tsx | 1 + src/features/Conversation/Error/InvalidAccess.tsx | 1 + src/features/PluginSettings/PluginSettingRender.tsx | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app/settings/common/Common.tsx b/src/app/settings/common/Common.tsx index 3f99d6ef16bf..a07c5e8d908c 100644 --- a/src/app/settings/common/Common.tsx +++ b/src/app/settings/common/Common.tsx @@ -186,7 +186,12 @@ const Common = memo(({ showAccessCodeConfig }) => { const system: SettingItemGroup = { children: [ { - children: , + children: ( + + ), desc: t('settingSystem.accessCode.desc'), hidden: !showAccessCodeConfig, label: t('settingSystem.accessCode.title'), diff --git a/src/app/settings/llm/LLM/index.tsx b/src/app/settings/llm/LLM/index.tsx index 994f4a3fea04..deadc55ac33d 100644 --- a/src/app/settings/llm/LLM/index.tsx +++ b/src/app/settings/llm/LLM/index.tsx @@ -50,6 +50,7 @@ const LLM = memo(() => { { children: ( (({ id }) => { title={t('unlock.apikey.title')} > { setConfig({ OPENAI_API_KEY: e.target.value }); }} diff --git a/src/features/Conversation/Error/InvalidAccess.tsx b/src/features/Conversation/Error/InvalidAccess.tsx index 92ea6c461e38..84833362bacf 100644 --- a/src/features/Conversation/Error/InvalidAccess.tsx +++ b/src/features/Conversation/Error/InvalidAccess.tsx @@ -48,6 +48,7 @@ const InvalidAccess: RenderErrorMessage['Render'] = memo(({ id }) => { title={t('unlock.password.title')} > { setSettings({ password: e.target.value }); }} diff --git a/src/features/PluginSettings/PluginSettingRender.tsx b/src/features/PluginSettings/PluginSettingRender.tsx index a4ed170401ad..159935ac076a 100644 --- a/src/features/PluginSettings/PluginSettingRender.tsx +++ b/src/features/PluginSettings/PluginSettingRender.tsx @@ -22,6 +22,7 @@ const PluginSettingRender = memo( return ( { onChange(v.target.value);