feat: fetch proxy config on form submit
This commit is contained in:
@@ -103,6 +103,7 @@ const ProxyForm: React.FC = () => {
|
|||||||
setIsProxyConfigured(true);
|
setIsProxyConfigured(true);
|
||||||
setProxy({ proxy_url: proxyConfigForm.server_url, auth: requiresAuth });
|
setProxy({ proxy_url: proxyConfigForm.server_url, auth: requiresAuth });
|
||||||
notify('success', t('proxy.notifications.config_success'));
|
notify('success', t('proxy.notifications.config_success'));
|
||||||
|
fetchProxyConfig();
|
||||||
} else {
|
} else {
|
||||||
notify('error', t('proxy.notifications.config_error'));
|
notify('error', t('proxy.notifications.config_error'));
|
||||||
console.log(`${t('proxy.notifications.config_error')} ${response}`)
|
console.log(`${t('proxy.notifications.config_error')} ${response}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user