Skip to content

Commit

Permalink
Update copy for authentication header form (#142620)
Browse files Browse the repository at this point in the history
  • Loading branch information
byronhulcher authored Oct 4, 2022
1 parent 1c25d93 commit 4c18c0a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const AUTHENTICATION_LABELS = {
}
),
raw: i18n.translate('xpack.enterpriseSearch.crawler.authenticationPanel.rawAuthenticationLabel', {
defaultMessage: 'Bearer authentication',
defaultMessage: 'Authentication header',
}),
};
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down

0 comments on commit 4c18c0a

Please sign in to comment.