forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metrics UI] Fix alert management to open without refresh (elastic#73739
) * [Metrics UI] Fix alert management to open without refresh * removing unecessary code * Deleting unused imports Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
b74b8c1
commit 0365c78
Showing
3 changed files
with
38 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ck/plugins/infra/public/alerting/inventory/components/manage_alerts_context_menu_item.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { EuiContextMenuItem } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { useLinkProps } from '../../../hooks/use_link_props'; | ||
|
||
export const ManageAlertsContextMenuItem = () => { | ||
const manageAlertsLinkProps = useLinkProps({ | ||
app: 'management', | ||
pathname: '/insightsAndAlerting/triggersActions/alerts', | ||
}); | ||
return ( | ||
<EuiContextMenuItem icon="tableOfContents" key="manageLink" {...manageAlertsLinkProps}> | ||
<FormattedMessage id="xpack.infra.alerting.manageAlerts" defaultMessage="Manage alerts" /> | ||
</EuiContextMenuItem> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters