[Uptime] [Synthetics Integration] update tls passphrase and http password field to use EuiFieldPassword (#100162)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Dominique Clarke 2021-05-16 18:09:12 -04:00 committed by GitHub
parent ea8c92b353
commit 5e410f5d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -17,6 +17,7 @@ import {
EuiDescribedFormGroup,
EuiCheckbox,
EuiSpacer,
EuiFieldPassword,
} from '@elastic/eui';
import { useHTTPAdvancedFieldsContext } from './contexts';
@ -110,7 +111,7 @@ export const HTTPAdvancedFields = memo<Props>(({ validate }) => {
/>
}
>
<EuiFieldText
<EuiFieldPassword
value={fields[ConfigKeys.PASSWORD]}
onChange={(event) =>
handleInputChange({

View file

@ -13,12 +13,12 @@ import {
EuiComboBox,
EuiComboBoxOptionOption,
EuiFormRow,
EuiFieldText,
EuiTextArea,
EuiFormFieldset,
EuiSelect,
EuiScreenReaderOnly,
EuiSpacer,
EuiFieldPassword,
} from '@elastic/eui';
import { useTLSFieldsContext } from './contexts';
@ -333,7 +333,7 @@ export const TLSFields: React.FunctionComponent<{
}
labelAppend={<OptionalLabel />}
>
<EuiFieldText
<EuiFieldPassword
value={fields[ConfigKeys.TLS_KEY_PASSPHRASE].value}
onChange={(event) => {
const value = event.target.value;