mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution] Update encryption key call out message in response console (#157054)
## Summary Update copy and add a docs link for the encryption key out message in response console. <img width="1728" alt="image" src="https://user-images.githubusercontent.com/56395104/236916654-297c4ae1-6097-44c2-83bf-264fd37a74e3.png"> Navigates to this in docs: https://www.elastic.co/guide/en/kibana/master/xpack-security-secure-saved-objects.html ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
This commit is contained in:
parent
7fd9ca64b0
commit
b3e495038b
1 changed files with 14 additions and 2 deletions
|
@ -6,14 +6,16 @@
|
|||
*/
|
||||
|
||||
import React, { memo, useState, useCallback } from 'react';
|
||||
import { EuiCallOut, EuiSpacer, EuiButtonEmpty } from '@elastic/eui';
|
||||
import { EuiCallOut, EuiSpacer, EuiButtonEmpty, EuiLink } from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { useGetActionState } from '../../hooks';
|
||||
import { useKibana } from '../../../common/lib/kibana';
|
||||
|
||||
export const MissingEncryptionKeyCallout = memo(() => {
|
||||
const { data: encryptionKeyState } = useGetActionState();
|
||||
const [calloutDismiss, setCalloutDismiss] = useState(false);
|
||||
const { docLinks } = useKibana().services;
|
||||
|
||||
const onClickDismissButton = useCallback(() => setCalloutDismiss(true), []);
|
||||
|
||||
|
@ -41,7 +43,17 @@ export const MissingEncryptionKeyCallout = memo(() => {
|
|||
<div>
|
||||
<FormattedMessage
|
||||
id="xpack.securitySolution.responder.missingEncryptionKey.callout.body"
|
||||
defaultMessage="Encryption key will make your environment more secure"
|
||||
defaultMessage="We recommend encryption keys be configured to protect sensitive information and make your environment more secure. Without encryption keys configured, some features may not perform as intended. {viewMore}."
|
||||
values={{
|
||||
viewMore: (
|
||||
<EuiLink href={docLinks.links.kibana.secureSavedObject} target="_blank">
|
||||
<FormattedMessage
|
||||
id="xpack.securitySolution.responder.missingEncryptionKey.docsLink"
|
||||
defaultMessage="View more information"
|
||||
/>
|
||||
</EuiLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue