Skip to content

Commit

Permalink
[FEATURE] Create detector |Add detection rules count in the title ope…
Browse files Browse the repository at this point in the history
…nsearch-project#128 (opensearch-project#147)

* [FEATURE] Create detector | Review and create step | Add detection rules count in the title opensearch-project#128

Signed-off-by: Jovan Cvetkovic <jovanca.cvetkovic@gmail.com>

* Adjusted OSD version used by test workflows. (opensearch-project#149)

* Adjusted OSD version used by test workflows.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Fixed env variable call.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* Revised comment to include github issue link.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>

* [FEATURE] Create detector | Review and create step | Add detection rules count in the title opensearch-project#128

Signed-off-by: Jovan Cvetkovic <jovanca.cvetkovic@gmail.com>

Signed-off-by: Jovan Cvetkovic <jovanca.cvetkovic@gmail.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
  • Loading branch information
jovancvetkovic3006 and AWSHurneyt authored Nov 23, 2022
1 parent 26f8ba0 commit d7af690
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ export const DetectorRulesView: React.FC<DetectorRulesViewProps> = (props) => {
/>
);

const getDetectionRulesTitle = () => `View detection rules (${totalSelected})`;

return props.rulesCanFold ? (
<EuiAccordion
id={props.detector.name}
title="View detection rules"
title={getDetectionRulesTitle()}
buttonContent={
<EuiText size="m">
<p>View detection rules</p>
<p>{getDetectionRulesTitle()}</p>
</EuiText>
}
>
Expand Down

0 comments on commit d7af690

Please sign in to comment.