diff --git a/src/components/organisms/ProxyForm.tsx b/src/components/organisms/ProxyForm.tsx index dd478d77..f8cf03c8 100644 --- a/src/components/organisms/ProxyForm.tsx +++ b/src/components/organisms/ProxyForm.tsx @@ -115,102 +115,102 @@ const ProxyForm: React.FC = () => { return ( <> - { - isProxyConfigured ? ( - - - Proxy is already configured. You can test the configuration below. - - - - ) : ( - - - Proxy Configuration - - - - - - {tabIndex === 0 && ( - - - + + Proxy is already configured. You can test the configuration below. + + + + ) : ( + + + Proxy Configuration + + + + + + {tabIndex === 0 && ( + + + - - - } - label="Requires Authentication?" - /> - - {requiresAuth && ( - <> - - + + + } + label="Requires Authentication?" + /> + + {requiresAuth && ( + <> + + + + + + + + )} + - - )} - {tabIndex === 1 && ( - - <> - - Coming Soon. Join our Cloud Waitlist to get early access. - - - - - )} - - ) - } + disabled={!proxyConfig.server_url || (requiresAuth && (!proxyConfig.username || !proxyConfig.password))} + > + Add Proxy + + + )} + {tabIndex === 1 && ( + + <> + + Coming Soon. Join our Cloud Waitlist to get early access. + + + + + )} + + ) + } ); };