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 d49a996 commit 520074d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React from 'react';
import { ContentPanel } from '../../../../components/ContentPanel';
import { createTextDetailsGroup, parseSchedule } from '../../../../utils/helpers';
import moment from 'moment';
import { DEFAULT_EMPTY_DATA } from '../../../../utils/constants';
import { DEFAULT_EMPTY_DATA, logTypesWithDashboards } from '../../../../utils/constants';
import { Detector } from '../../../../../types';

export interface DetectorBasicDetailsViewProps {
Expand Down Expand Up @@ -48,6 +48,8 @@ export const DetectorBasicDetailsView: React.FC<DetectorBasicDetailsViewProps> =
{`${name} summary`}
<EuiIcon type={'popout'} />
</EuiLink>
) : !logTypesWithDashboards.has(detector_type) ? (
'Not available for this log type'
) : (
'-'
)) as any,
Expand Down

0 comments on commit 520074d

Please sign in to comment.