From 9d617291be36446a4588d21714a9741609f4f4f4 Mon Sep 17 00:00:00 2001 From: Dominique Clarke Date: Mon, 1 Aug 2022 12:35:17 -0400 Subject: [PATCH] show monitor management button on-prem --- .../components/common/header/manage_monitors_btn.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/x-pack/plugins/synthetics/public/legacy_uptime/components/common/header/manage_monitors_btn.tsx b/x-pack/plugins/synthetics/public/legacy_uptime/components/common/header/manage_monitors_btn.tsx index 2d0ac2654b71f..365ea6ccdd446 100644 --- a/x-pack/plugins/synthetics/public/legacy_uptime/components/common/header/manage_monitors_btn.tsx +++ b/x-pack/plugins/synthetics/public/legacy_uptime/components/common/header/manage_monitors_btn.tsx @@ -12,30 +12,19 @@ import React from 'react'; import { useHistory } from 'react-router-dom'; import useLocalStorage from 'react-use/lib/useLocalStorage'; -import { useKibana } from '@kbn/kibana-react-plugin/public'; import { MONITOR_MANAGEMENT_ROUTE } from '../../../../../common/constants'; import { PUBLIC_BETA_DESCRIPTION } from '../../../pages/monitor_management/service_allowed_wrapper'; -import { ClientPluginsSetup } from '../../../../plugin'; -import { useUptimeSettingsContext } from '../../../contexts/uptime_settings_context'; export const ManageMonitorsBtn = () => { const [isOpen, setIsOpen] = useLocalStorage('xpack.synthetics.monitorManagement.openTour', true); const history = useHistory(); - const { cloud } = useKibana().services; - - const { isDev } = useUptimeSettingsContext(); - const handleOnClick = () => { setIsOpen(false); history.push(MONITOR_MANAGEMENT_ROUTE + '/all'); }; - if (!cloud?.isCloudEnabled && !isDev) { - return null; - } - return (