Merge pull request #454 from getmaxun/byop-ui

fix: display proxy config immediately after submission w/o hard refresh
This commit is contained in:
Karishma Shukla
2025-02-28 05:27:16 +05:30
committed by GitHub

View File

@@ -100,7 +100,10 @@ const ProxyForm: React.FC = () => {
try {
const response = await sendProxyConfig(proxyConfigForm);
if (response) {
setIsProxyConfigured(true);
setProxy({ proxy_url: proxyConfigForm.server_url, auth: requiresAuth });
notify('success', t('proxy.notifications.config_success'));
fetchProxyConfig();
} else {
notify('error', t('proxy.notifications.config_error'));
console.log(`${t('proxy.notifications.config_error')} ${response}`)