diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/index.tsx index ced56586f4f2f..0963fc0836471 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/index.tsx @@ -64,9 +64,9 @@ export const RulesWithGapsOverviewPanel = () => { ); - const handleShowRulesWithGapsFilterButtonClick = (value: boolean) => { + const handleShowRulesWithGapsFilterButtonClick = () => { setFilterOptions({ - showRulesWithGaps: value, + showRulesWithGaps: !showRulesWithGaps, }); }; @@ -119,16 +119,10 @@ export const RulesWithGapsOverviewPanel = () => { - handleShowRulesWithGapsFilterButtonClick(false)} - > - {i18n.RULE_GAPS_OVERVIEW_PANEL_SHOW_ALL_RULES_LABEL} - handleShowRulesWithGapsFilterButtonClick(true)} + onClick={handleShowRulesWithGapsFilterButtonClick} + iconType={showRulesWithGaps ? `checkInCircleFilled` : undefined} > {i18n.RULE_GAPS_OVERVIEW_PANEL_SHOW_RULES_WITH_GAPS_LABEL} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/translations.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/translations.tsx index fe9963eace3d1..04f29b2676917 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/translations.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_gaps/components/rules_with_gaps_overview_panel/translations.tsx @@ -13,18 +13,10 @@ export const RULE_GAPS_OVERVIEW_PANEL_LABEL = i18n.translate( defaultMessage: 'Total rules with gaps:', } ); - -export const RULE_GAPS_OVERVIEW_PANEL_SHOW_ALL_RULES_LABEL = i18n.translate( - 'xpack.securitySolution.ruleGapsOverviewPanel.showAllRulesLabel', - { - defaultMessage: 'Show all rules', - } -); - export const RULE_GAPS_OVERVIEW_PANEL_SHOW_RULES_WITH_GAPS_LABEL = i18n.translate( 'xpack.securitySolution.ruleGapsOverviewPanel.showRulesWithGapsLabel', { - defaultMessage: 'Show rules with gaps', + defaultMessage: 'Only rules with gaps', } );