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 c8eb9cc34a..43a487ba5a 100644 --- a/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsModal.tsx +++ b/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsModal.tsx @@ -90,6 +90,7 @@ type ConfigOptions = { shouldShowDeveloperSettings: boolean; shouldShowResetWebUiText: boolean; shouldShowBetaLayout: boolean; + shouldShowAdvancedOptionsSettings: boolean; }; type SettingsModalProps = { @@ -106,6 +107,8 @@ const SettingsModal = ({ children, config }: SettingsModalProps) => { const shouldShowDeveloperSettings = config?.shouldShowDeveloperSettings ?? true; const shouldShowResetWebUiText = config?.shouldShowResetWebUiText ?? true; + const shouldShowAdvancedOptionsSettings = + config?.shouldShowAdvancedOptionsSettings ?? true; useEffect(() => { if (!shouldShowDeveloperSettings) { @@ -193,13 +196,15 @@ const SettingsModal = ({ children, config }: SettingsModalProps) => { dispatch(setShouldConfirmOnDelete(e.target.checked)) } /> - ) => - dispatch(setShouldShowAdvancedOptions(e.target.checked)) - } - /> + {shouldShowAdvancedOptionsSettings && ( + ) => + dispatch(setShouldShowAdvancedOptions(e.target.checked)) + } + /> + )}