Skip to content

Commit

Permalink
[FEATURE] Deleting detectors should delete all related dashboards (in…
Browse files Browse the repository at this point in the history
…cluding index-patterns and visualisations) opensearch-project#509

Signed-off-by: Jovan Cvetkovic <[email protected]>
  • Loading branch information
jovancvetkovic3006 committed Apr 12, 2023
1 parent f1c4a43 commit 128154d
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { DetectorRulesView } from '../../components/DetectorRulesView/DetectorRu
import { RuleItem } from '../../../CreateDetector/components/DefineDetector/components/DetectionRules/types/interfaces';
import { NotificationsStart } from 'opensearch-dashboards/public';
import { Detector } from '../../../../../types';
import { EuiSpacer } from '@elastic/eui';

export interface DetectorDetailsViewProps {
detector: Detector;
Expand Down Expand Up @@ -40,13 +41,16 @@ export class DetectorDetailsView extends React.Component<
isEditable = true,
} = this.props;
const detectorRules = (
<DetectorRulesView
{...this.props}
detector={detector}
rulesCanFold={rulesCanFold}
onEditClicked={editDetectorRules}
isEditable={isEditable}
/>
<>
<EuiSpacer size="m" />
<DetectorRulesView
{...this.props}
detector={detector}
rulesCanFold={rulesCanFold}
onEditClicked={editDetectorRules}
isEditable={isEditable}
/>
</>
);

return (
Expand Down

0 comments on commit 128154d

Please sign in to comment.