From d7af6904d49b3cf2aa808159d0c2a797d0a9d81e Mon Sep 17 00:00:00 2001 From: Jovan Cvetkovic Date: Wed, 23 Nov 2022 01:37:53 +0100 Subject: [PATCH] [FEATURE] Create detector |Add detection rules count in the title #128 (#147) * [FEATURE] Create detector | Review and create step | Add detection rules count in the title #128 Signed-off-by: Jovan Cvetkovic * Adjusted OSD version used by test workflows. (#149) * Adjusted OSD version used by test workflows. Signed-off-by: AWSHurneyt * Fixed env variable call. Signed-off-by: AWSHurneyt * Revised comment to include github issue link. Signed-off-by: AWSHurneyt Signed-off-by: AWSHurneyt * [FEATURE] Create detector | Review and create step | Add detection rules count in the title #128 Signed-off-by: Jovan Cvetkovic Signed-off-by: Jovan Cvetkovic Signed-off-by: AWSHurneyt Co-authored-by: AWSHurneyt --- .../components/DetectorRulesView/DetectorRulesView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/pages/Detectors/components/DetectorRulesView/DetectorRulesView.tsx b/public/pages/Detectors/components/DetectorRulesView/DetectorRulesView.tsx index 69c457e4b..452af54ac 100644 --- a/public/pages/Detectors/components/DetectorRulesView/DetectorRulesView.tsx +++ b/public/pages/Detectors/components/DetectorRulesView/DetectorRulesView.tsx @@ -123,13 +123,15 @@ export const DetectorRulesView: React.FC = (props) => { /> ); + const getDetectionRulesTitle = () => `View detection rules (${totalSelected})`; + return props.rulesCanFold ? ( -

View detection rules

+

{getDetectionRulesTitle()}

} >