diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/components/controls.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/components/controls.tsx index d307df75cb328..3d7f1f4c01ea1 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/components/controls.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/components/controls.tsx @@ -82,6 +82,7 @@ export const Controls: FC = React.memo( const [isPopoverOpen, setPopover] = useState(false); const [didUntag, setDidUntag] = useState(false); + const canCreateDataFrameAnalytics: boolean = checkPermission('canCreateDataFrameAnalytics'); const canDeleteDataFrameAnalytics: boolean = checkPermission('canDeleteDataFrameAnalytics'); const deleteAction = useDeleteAction(canDeleteDataFrameAnalytics); const { @@ -201,6 +202,7 @@ export const Controls: FC = React.memo( { openDeleteJobCheckModal({ config: details[nodeId], stats: details[nodeId]?.stats }); }} @@ -210,7 +212,12 @@ export const Controls: FC = React.memo( defaultMessage="Delete job" /> , - + = React.memo( ...(nodeType === JOB_MAP_NODE_TYPES.INDEX ? [