mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
(cherry picked from commit 4c18c0a25e
)
Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
This commit is contained in:
parent
92ea4f2a5d
commit
9c5a6f20c5
3 changed files with 12 additions and 7 deletions
|
@ -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}
|
||||
|
|
|
@ -15,6 +15,6 @@ export const AUTHENTICATION_LABELS = {
|
|||
}
|
||||
),
|
||||
raw: i18n.translate('xpack.enterpriseSearch.crawler.authenticationPanel.rawAuthenticationLabel', {
|
||||
defaultMessage: 'Bearer authentication',
|
||||
defaultMessage: 'Authentication header',
|
||||
}),
|
||||
};
|
||||
|
|
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue