@@ -62,7 +67,7 @@ const AlertsContent: FC
= ({ groups = [], statsCount }) => {
@@ -74,8 +79,9 @@ const AlertsContent: FC = ({ groups = [], statsCount }) => {
})}
setShowAnnotations(!showAnnotations)}
+ onClick={() => toggleAnnotations()}
>
Show annotations
@@ -90,7 +96,7 @@ const AlertsContent: FC = ({ groups = [], statsCount }) => {
{group.rules.map((rule, j) => {
return (
filter[rule.state] && (
-
+
)
);
})}
diff --git a/web/ui/react-app/src/pages/alerts/__snapshots__/AlertContents.test.tsx.snap b/web/ui/react-app/src/pages/alerts/__snapshots__/AlertContents.test.tsx.snap
new file mode 100644
index 0000000000..fdbba2c9f8
--- /dev/null
+++ b/web/ui/react-app/src/pages/alerts/__snapshots__/AlertContents.test.tsx.snap
@@ -0,0 +1,100 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`AlertsContent matches a snapshot 1`] = `
+
+
+
+
+ inactive
+ (
+ 0
+ )
+
+
+
+
+ pending
+ (
+ 0
+ )
+
+
+
+
+ firing
+ (
+ 0
+ )
+
+
+
+
+ Show annotations
+
+
+
+
+`;