Skip to content

Commit

Permalink
Revert "[Security solution] [Endpoint] Unify subtitle text in flyout …
Browse files Browse the repository at this point in the history
…and modal for event filters (#106401)"

This reverts commit 7f75873.
  • Loading branch information
jbudz committed Jul 22, 2021
1 parent 745db30 commit ba2915e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ import { ExceptionBuilder } from '../../../../../../shared_imports';

import { useEventFiltersSelector } from '../../hooks';
import { getFormEntryStateMutable, getHasNameError, getNewComment } from '../../../store/selector';
import { NAME_LABEL, NAME_ERROR, NAME_PLACEHOLDER, OS_LABEL, RULE_NAME } from './translations';
import {
FORM_DESCRIPTION,
NAME_LABEL,
NAME_ERROR,
NAME_PLACEHOLDER,
OS_LABEL,
RULE_NAME,
} from './translations';
import { OS_TITLES } from '../../../../../common/translations';
import { ENDPOINT_EVENT_FILTERS_LIST_ID, EVENT_FILTER_LIST_TYPE } from '../../../constants';
import { ABOUT_EVENT_FILTERS } from '../../translations';

const OPERATING_SYSTEMS: readonly OperatingSystem[] = [
OperatingSystem.MAC,
Expand Down Expand Up @@ -199,12 +205,8 @@ export const EventFiltersForm: React.FC<EventFiltersFormProps> = memo(

return !isIndexPatternLoading && exception ? (
<EuiForm component="div">
{!exception || !exception.item_id ? (
<EuiText color="subdued" size="xs">
{ABOUT_EVENT_FILTERS}
<EuiSpacer size="m" />
</EuiText>
) : null}
<EuiText size="s">{FORM_DESCRIPTION}</EuiText>
<EuiSpacer size="m" />
{nameInputMemo}
<EuiSpacer size="m" />
{allowSelectOs ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

import { i18n } from '@kbn/i18n';

export const FORM_DESCRIPTION = i18n.translate(
'xpack.securitySolution.eventFilter.modal.description',
{
defaultMessage: "Events are filtered when the rule's conditions are met:",
}
);

export const NAME_PLACEHOLDER = i18n.translate(
'xpack.securitySolution.eventFilter.form.name.placeholder',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import { EventFilterDeleteModal } from './components/event_filter_delete_modal';

import { SearchBar } from '../../../components/search_bar';
import { BackToExternalAppButton } from '../../../components/back_to_external_app_button';
import { ABOUT_EVENT_FILTERS } from './translations';

type EventListPaginatedContent = PaginatedContentProps<
Immutable<ExceptionListItemSchema>,
Expand Down Expand Up @@ -196,7 +195,11 @@ export const EventFiltersListPage = memo(() => {
defaultMessage="Event Filters"
/>
}
subtitle={ABOUT_EVENT_FILTERS}
subtitle={i18n.translate('xpack.securitySolution.eventFilters.aboutInfo', {
defaultMessage:
'Add an event filter to exclude high volume or unwanted events from being written to Elasticsearch. Event ' +
'filters are processed by the Endpoint Security integration, and are applied to hosts running this integration on their agents.',
})}
actions={
doesDataExist && (
<EuiButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,3 @@ export const getGetErrorMessage = (getError: ServerApiError) => {
values: { error: getError.message },
});
};

export const ABOUT_EVENT_FILTERS = i18n.translate('xpack.securitySolution.eventFilters.aboutInfo', {
defaultMessage:
'Add an event filter to exclude high volume or unwanted events from being written to Elasticsearch. Event ' +
'filters are processed by the Endpoint Security integration, and are applied to hosts running this integration on their agents.',
});

0 comments on commit ba2915e

Please sign in to comment.