Skip to content

Commit

Permalink
fix element name and don't return the password
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonnav committed Jul 17, 2024
1 parent 880ece1 commit c1bb16f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions estela-web/src/components/ProxySettingsPage/ProxyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export const ProxyForm: React.FC<ProxyFormProps> = ({ envVars, setEnvVars, type,
}, [proxyEnvVars]);

const getProxyValue = (envVarName: string): string => {
if (envVarName == "ESTELA_PROXY_PASS") {
return "";
}
const proxyNameObj = envVars.find((obj) => obj.name === envVarName);
return proxyNameObj ? proxyNameObj.value : "";
};
Expand Down Expand Up @@ -87,12 +90,12 @@ export const ProxyForm: React.FC<ProxyFormProps> = ({ envVars, setEnvVars, type,
/>
</Form.Item>
<Form.Item label="Password" name="proxy_password">
<Input.password
<Input.Password
size="large"
placeholder="Password"
name="ESTELA_PROXY_PASS"
onChange={handleChangeProxy}
defaultValue={getProxyValue("ESTELA_PROXY_PASS")}
defaultValue=""
className="input-proxy-form border-estela placeholder:text-estela-black-low"
/>
</Form.Item>
Expand Down

0 comments on commit c1bb16f

Please sign in to comment.