From 9ca2f7becee1be2e5341c9729f3cfb58fd02a746 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Tue, 26 Mar 2024 17:36:47 +0000 Subject: [PATCH] Add pause/resume logic to menu items on Alert detail view --- .../alerting/unified/components/rule-viewer/Actions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/alerting/unified/components/rule-viewer/Actions.tsx b/public/app/features/alerting/unified/components/rule-viewer/Actions.tsx index 8dd22260189..2bfdc1bef25 100644 --- a/public/app/features/alerting/unified/components/rule-viewer/Actions.tsx +++ b/public/app/features/alerting/unified/components/rule-viewer/Actions.tsx @@ -3,6 +3,7 @@ import React from 'react'; import { AppEvents } from '@grafana/data'; import { Dropdown, LinkButton, Menu } from '@grafana/ui'; import appEvents from 'app/core/app_events'; +import MenuItemPauseRule from 'app/features/alerting/unified/MenuItemPauseRule'; import { CombinedRule, RuleIdentifier } from 'app/types/unified-alerting'; import { AlertRuleAction, useAlertRuleAbility } from '../../hooks/useAbilities'; @@ -51,6 +52,7 @@ export const useAlertRulePageActions = ({ handleDelete, handleDuplicateRule }: P key="more-actions" overlay={ + {canEdit && } {canSilence && (