Skip to content

Commit

Permalink
fix checks failures
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Oct 19, 2022
1 parent 83b355e commit 8a9ab6d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const RuleActionsOverflowComponent = ({
>
<EuiToolTip
position="left"
content={getToolTipContent(rule, true, canDuplicateRuleWithActions)}
content={getToolTipContent(rule, true, canDuplicateRuleWithActions, true)}
>
<>{i18nActions.DUPLICATE_RULE}</>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const useEnabledColumn = ({ hasPermissions }: ColumnsProps): TableColumn => {
render: (_, rule: Rule) => (
<EuiToolTip
position="top"
content={getToolTipContent(rule, hasMlPermissions, hasActionsPrivileges)}
content={getToolTipContent(rule, hasMlPermissions, hasActionsPrivileges, true)}
>
<RuleSwitch
id={rule.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,17 +582,6 @@ const RuleDetailsPageComponent: React.FC<DetectionEngineComponentProps> = ({
setRule((currentRule) => (currentRule ? { ...currentRule, enabled } : currentRule));
}, []);

const goToEditRule = useCallback(
(ev) => {
ev.preventDefault();
navigateToApp(APP_UI_ID, {
deepLinkId: SecurityPageName.rules,
path: getEditRuleUrl(ruleId ?? ''),
});
},
[navigateToApp, ruleId]
);

const onShowBuildingBlockAlertsChangedCallback = useCallback(
(newShowBuildingBlockAlerts: boolean) => {
setShowBuildingBlockAlerts(newShowBuildingBlockAlerts);
Expand Down

0 comments on commit 8a9ab6d

Please sign in to comment.