Merge pull request #454 from getmaxun/byop-ui
fix: display proxy config immediately after submission w/o hard refresh
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user