[8.7] [Security Solution] [Exceptions] change 'manage rules' to 'link rules' on exceptions pages (#151905) (#152615)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Security Solution] [Exceptions] change 'manage rules' to 'link
rules' on exceptions pages
(#151905)](https://github.com/elastic/kibana/pull/151905)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Devin W.
Hurley","email":"devin.hurley@elastic.co"},"sourceCommit":{"committedDate":"2023-03-02T19:40:57Z","message":"[Security
Solution] [Exceptions] change 'manage rules' to 'link rules' on
exceptions pages (#151905)\n\nRef:
https://github.com/elastic/kibana/issues/146268","sha":"f95d4eae7f401791984b6e7fc72dfb51329f83f6","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","Feature:Rule
Exceptions","Team:Security Solution
Platform","v8.7.0","v8.8.0"],"number":151905,"url":"https://github.com/elastic/kibana/pull/151905","mergeCommit":{"message":"[Security
Solution] [Exceptions] change 'manage rules' to 'link rules' on
exceptions pages (#151905)\n\nRef:
https://github.com/elastic/kibana/issues/146268","sha":"f95d4eae7f401791984b6e7fc72dfb51329f83f6"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151905","number":151905,"mergeCommit":{"message":"[Security
Solution] [Exceptions] change 'manage rules' to 'link rules' on
exceptions pages (#151905)\n\nRef:
https://github.com/elastic/kibana/issues/146268","sha":"f95d4eae7f401791984b6e7fc72dfb51329f83f6"}}]}]
BACKPORT-->

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
This commit is contained in:
Kibana Machine 2023-03-02 16:22:00 -05:00 committed by GitHub
parent 77215042c9
commit d854b43d0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 29 additions and 28 deletions

View file

@ -185,7 +185,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -565,7 +565,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -848,7 +848,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -1074,7 +1074,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -1329,7 +1329,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -1528,7 +1528,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>

View file

@ -242,7 +242,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -309,7 +309,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -433,7 +433,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -580,7 +580,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -1022,7 +1022,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>
@ -1117,7 +1117,7 @@ Object {
<span
class="eui-textTruncate"
>
Manage rules
Link rules
</span>
</span>
</button>

View file

@ -81,7 +81,7 @@ const MenuItemsComponent: FC<MenuItemsProps> = ({
if (typeof onManageRules === 'function') onManageRules();
}}
>
{i18n.EXCEPTION_LIST_HEADER_MANAGE_RULES_BUTTON}
{i18n.EXCEPTION_LIST_HEADER_LINK_RULES_BUTTON}
</EuiButton>
</EuiFlexItem>
)}

View file

@ -67,10 +67,10 @@ export const EXCEPTION_LIST_HEADER_DELETE_ACTION = i18n.translate(
defaultMessage: 'Delete exception list',
}
);
export const EXCEPTION_LIST_HEADER_MANAGE_RULES_BUTTON = i18n.translate(
'exceptionList-components.exception_list_header_manage_rules_button',
export const EXCEPTION_LIST_HEADER_LINK_RULES_BUTTON = i18n.translate(
'exceptionList-components.exception_list_header_link_rules_button',
{
defaultMessage: 'Manage rules',
defaultMessage: 'Link rules',
}
);

View file

@ -55,7 +55,7 @@ export const ManageRules: FC<ManageRulesProps> = memo(
>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="m">
<h2 id={complicatedFlyoutTitleId}>{i18n.MANAGE_RULES_HEADER}</h2>
<h2 id={complicatedFlyoutTitleId}>{i18n.LINK_RULES_HEADER}</h2>
</EuiTitle>
<EuiSpacer size="s" />
<EuiText size="s" color="subdued">

View file

@ -141,10 +141,10 @@ export const useExceptionsListCard = ({
},
},
{
key: 'ManageRules',
key: 'LinkRules',
icon: 'gear',
disabled: listCannotBeEdited,
label: 'Manage Rules',
label: i18n.LINK_RULES_OVERFLOW_BUTTON_TITLE,
onClick: (e: React.MouseEvent<Element, MouseEvent>) => {
handleManageRules();
},

View file

@ -112,10 +112,17 @@ export const MANAGE_RULES_SAVE = i18n.translate(
defaultMessage: 'Save',
}
);
export const MANAGE_RULES_HEADER = i18n.translate(
'xpack.securitySolution.exceptions.list.manage_rules_header',
export const LINK_RULES_HEADER = i18n.translate(
'xpack.securitySolution.exceptions.list.link_rules_header',
{
defaultMessage: 'Manage rules',
defaultMessage: 'Link rules',
}
);
export const LINK_RULES_OVERFLOW_BUTTON_TITLE = i18n.translate(
'xpack.securitySolution.exceptions.list.link_rules_overflow_button_title',
{
defaultMessage: 'Link rules',
}
);

View file

@ -2479,7 +2479,6 @@
"exceptionList-components.exception_list_header_edit_modal_save_button": "Enregistrer",
"exceptionList-components.exception_list_header_export_action": "Exporter la liste d'exceptions",
"exceptionList-components.exception_list_header_list_id": "ID de liste",
"exceptionList-components.exception_list_header_manage_rules_button": "Gérer les règles",
"exceptionList-components.exception_list_header_name": "Ajouter un nom",
"exceptionList-components.exception_list_header_Name_textbox": "Nom",
"exceptionList-components.exceptions.exceptionItem.card.conditions.and": "AND",
@ -29613,7 +29612,6 @@
"xpack.securitySolution.exceptions.list.exceptionItemsFetchErrorDescription": "Une erreur s'est produite lors du chargement des éléments d'exception. Contactez votre administrateur pour obtenir de l'aide.",
"xpack.securitySolution.exceptions.list.manage_rules_cancel": "Annuler",
"xpack.securitySolution.exceptions.list.manage_rules_description": "Associez des règles à cette liste d'exceptions ou dissociez des règles de cette liste.",
"xpack.securitySolution.exceptions.list.manage_rules_header": "Gérer les règles",
"xpack.securitySolution.exceptions.list.manage_rules_save": "Enregistrer",
"xpack.securitySolution.exceptions.list.utility.title": "exceptions de règle",
"xpack.securitySolution.exceptions.manageExceptions.createItemButton": "Créer un élément d'exception",

View file

@ -2477,7 +2477,6 @@
"exceptionList-components.exception_list_header_edit_modal_save_button": "保存",
"exceptionList-components.exception_list_header_export_action": "例外リストのエクスポート",
"exceptionList-components.exception_list_header_list_id": "リスト ID",
"exceptionList-components.exception_list_header_manage_rules_button": "ルールの管理",
"exceptionList-components.exception_list_header_name": "名前を追加",
"exceptionList-components.exception_list_header_Name_textbox": "名前",
"exceptionList-components.exceptions.exceptionItem.card.conditions.and": "AND",
@ -29582,7 +29581,6 @@
"xpack.securitySolution.exceptions.list.exceptionItemsFetchErrorDescription": "例外アイテムの読み込みエラーが発生しました。ヘルプについては、管理者にお問い合わせください。",
"xpack.securitySolution.exceptions.list.manage_rules_cancel": "キャンセル",
"xpack.securitySolution.exceptions.list.manage_rules_description": "ルールをこの例外リストに関連付けたり、関連付けを解除したりします。",
"xpack.securitySolution.exceptions.list.manage_rules_header": "ルールの管理",
"xpack.securitySolution.exceptions.list.manage_rules_save": "保存",
"xpack.securitySolution.exceptions.list.utility.title": "ルール例外",
"xpack.securitySolution.exceptions.manageExceptions.createItemButton": "例外アイテムの作成",

View file

@ -2481,7 +2481,6 @@
"exceptionList-components.exception_list_header_edit_modal_save_button": "保存",
"exceptionList-components.exception_list_header_export_action": "导出例外列表",
"exceptionList-components.exception_list_header_list_id": "列表 ID",
"exceptionList-components.exception_list_header_manage_rules_button": "管理规则",
"exceptionList-components.exception_list_header_name": "添加名称",
"exceptionList-components.exception_list_header_Name_textbox": "名称",
"exceptionList-components.exceptions.exceptionItem.card.conditions.and": "且",
@ -29616,7 +29615,6 @@
"xpack.securitySolution.exceptions.list.exceptionItemsFetchErrorDescription": "加载例外项时出现错误。请联系您的管理员寻求帮助。",
"xpack.securitySolution.exceptions.list.manage_rules_cancel": "取消",
"xpack.securitySolution.exceptions.list.manage_rules_description": "将规则链接到此例外列表或取消链接。",
"xpack.securitySolution.exceptions.list.manage_rules_header": "管理规则",
"xpack.securitySolution.exceptions.list.manage_rules_save": "保存",
"xpack.securitySolution.exceptions.list.utility.title": "规则例外",
"xpack.securitySolution.exceptions.manageExceptions.createItemButton": "创建例外项",