From 23fa739a13a7f41f994c3008ce9be6514dc4c374 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Mon, 7 Apr 2025 11:01:05 +0100 Subject: [PATCH] Alerting: Link annotations label and inputs together (#103473) --- .../rule-editor/AnnotationHeaderField.tsx | 4 ++- .../rule-editor/AnnotationsStep.test.tsx | 35 ++++++------------- .../rule-editor/AnnotationsStep.tsx | 2 ++ 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/AnnotationHeaderField.tsx b/public/app/features/alerting/unified/components/rule-editor/AnnotationHeaderField.tsx index 02b8087cf64..7f6ed397714 100644 --- a/public/app/features/alerting/unified/components/rule-editor/AnnotationHeaderField.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/AnnotationHeaderField.tsx @@ -12,17 +12,19 @@ const AnnotationHeaderField = ({ annotations, annotation, index, + labelId, }: { annotationField: FieldArrayWithId; annotations: Array<{ key: string; value: string }>; annotation: Annotation; index: number; + labelId: string; }) => { const { control } = useFormContext(); return ( -