From f86d0d1b69b40d560191f99d200ca74a4e684793 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Wed, 26 Jul 2023 10:55:38 -0400 Subject: [PATCH] hide localization toggle --- .../SettingsModal/SettingsModal.tsx | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsModal.tsx b/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsModal.tsx index ede125592a..af810f7836 100644 --- a/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsModal.tsx +++ b/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsModal.tsx @@ -104,6 +104,7 @@ type ConfigOptions = { shouldShowAdvancedOptionsSettings: boolean; shouldShowClearIntermediates: boolean; shouldShowNodesToggle: boolean; + shouldShowLocalizationToggle: boolean; }; type SettingsModalProps = { @@ -125,6 +126,8 @@ const SettingsModal = ({ children, config }: SettingsModalProps) => { const shouldShowClearIntermediates = config?.shouldShowClearIntermediates ?? true; const shouldShowNodesToggle = config?.shouldShowNodesToggle ?? true; + const shouldShowLocalizationToggle = + config?.shouldShowLocalizationToggle ?? true; useEffect(() => { if (!shouldShowDeveloperSettings) { @@ -325,16 +328,18 @@ const SettingsModal = ({ children, config }: SettingsModalProps) => { onChange={handleToggleNodes} /> )} - ({ - value, - label, - }))} - onChange={handleLanguageChanged} - /> + {shouldShowLocalizationToggle && ( + ({ + value, + label, + }))} + onChange={handleLanguageChanged} + /> + )} {shouldShowDeveloperSettings && (