diff --git a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/cti_disabled_module.tsx b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/cti_disabled_module.tsx
index da5216be7db3..38c352c43b0d 100644
--- a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/cti_disabled_module.tsx
+++ b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/cti_disabled_module.tsx
@@ -41,7 +41,12 @@ export const CtiDisabledModuleComponent = () => {
);
return (
-
+
);
};
diff --git a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.test.tsx b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.test.tsx
index 9714c28cc58c..ffd0c8e69e76 100644
--- a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.test.tsx
+++ b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.test.tsx
@@ -144,4 +144,32 @@ describe('ThreatIntelPanelView', () => {
`Showing: ${mockThreatIntelPanelViewProps.totalEventCount} indicators`
);
});
+
+ it('renders inspect button by default', () => {
+ const wrapper = mount(
+
+
+
+
+
+
+
+ );
+
+ expect(wrapper.exists('[data-test-subj="inspect-icon-button"]')).toBe(true);
+ });
+
+ it('does not render inspect button if isInspectEnabled is false', () => {
+ const wrapper = mount(
+
+
+
+
+
+
+
+ );
+
+ expect(wrapper.exists('[data-test-subj="inspect-icon-button"]')).toBe(false);
+ });
});
diff --git a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
index 2add03788eea..6bd7bef20fcb 100644
--- a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
+++ b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
@@ -55,6 +55,7 @@ const RightSideLink = styled(EuiLink)`
interface ThreatIntelPanelViewProps {
buttonHref?: string;
isDashboardPluginDisabled?: boolean;
+ isInspectEnabled?: boolean;
listItems: CtiListItem[];
splitPanel?: JSX.Element;
totalEventCount: number;
@@ -77,6 +78,7 @@ const panelTitle = (
export const ThreatIntelPanelView: React.FC = ({
buttonHref = '',
isDashboardPluginDisabled,
+ isInspectEnabled = true,
listItems,
splitPanel,
totalEventCount,
@@ -142,7 +144,11 @@ export const ThreatIntelPanelView: React.FC = ({
-
+
<>{button}>
{splitPanel}