Update copy for authentication header form (#142620) (#142633)

(cherry picked from commit 4c18c0a25e)

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
This commit is contained in:
Kibana Machine 2022-10-04 11:13:07 -06:00 committed by GitHub
parent 92ea4f2a5d
commit 9c5a6f20c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View file

@ -21,7 +21,9 @@ import {
EuiFlexItem,
} from '@elastic/eui';
import { USERNAME_LABEL, PASSWORD_LABEL, TOKEN_LABEL } from '../../../../shared/constants';
import { i18n } from '@kbn/i18n';
import { USERNAME_LABEL, PASSWORD_LABEL } from '../../../../shared/constants';
import { AuthenticationPanelLogic } from './authentication_panel_logic';
import { AUTHENTICATION_LABELS } from './constants';
@ -82,7 +84,14 @@ export const AuthenticationPanelEditContent: React.FC = () => {
onChange={() => selectAuthOption('raw')}
>
<EuiForm>
<EuiFormRow label={TOKEN_LABEL}>
<EuiFormRow
label={i18n.translate(
'xpack.enterpriseSearch.crawler.authenticationPanel.editForm.headerValueLabel',
{
defaultMessage: 'Header value',
}
)}
>
<EuiFieldPassword
type="dual"
value={headerContent}

View file

@ -15,6 +15,6 @@ export const AUTHENTICATION_LABELS = {
}
),
raw: i18n.translate('xpack.enterpriseSearch.crawler.authenticationPanel.rawAuthenticationLabel', {
defaultMessage: 'Bearer authentication',
defaultMessage: 'Authentication header',
}),
};

View file

@ -15,10 +15,6 @@ export const PASSWORD_LABEL = i18n.translate('xpack.enterpriseSearch.passwordLab
defaultMessage: 'Password',
});
export const TOKEN_LABEL = i18n.translate('xpack.enterpriseSearch.tokenLabel', {
defaultMessage: 'Token',
});
export const TYPE_LABEL = i18n.translate('xpack.enterpriseSearch.typeLabel', {
defaultMessage: 'Type',
});