Add InfoPausedRule back to alert detail view

This commit is contained in:
Tom Ratcliffe 2024-03-28 15:22:09 +00:00 committed by Tom Ratcliffe
parent 20a1955026
commit 1fcb264c87

View File

@ -6,6 +6,7 @@ import { NavModelItem, UrlQueryValue } from '@grafana/data';
import { Alert, LinkButton, Stack, TabContent, Text, TextLink, useStyles2 } from '@grafana/ui';
import { PageInfoItem } from 'app/core/components/Page/types';
import { useQueryParams } from 'app/core/hooks/useQueryParams';
import InfoPausedRule from 'app/features/alerting/unified/components/InfoPausedRule';
import { CombinedRule, RuleHealth, RuleIdentifier } from 'app/types/unified-alerting';
import { PromAlertingRuleState, PromRuleType } from 'app/types/unified-alerting-dto';
@ -93,6 +94,7 @@ const RuleViewer = () => {
info={createMetadata(rule)}
subTitle={
<Stack direction="column">
{isPaused && <InfoPausedRule />}
{summary}
{/* alerts and notifications and stuff */}
{isFederatedRule && <FederatedRuleWarning />}