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 {
|
try {
|
||||||
const response = await sendProxyConfig(proxyConfigForm);
|
const response = await sendProxyConfig(proxyConfigForm);
|
||||||
if (response) {
|
if (response) {
|
||||||
|
setIsProxyConfigured(true);
|
||||||
|
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