{
- copy(JSON.stringify(alertToJSON(group, alert)));
- afterClick();
- }}
- >
-
- Copy to clipboard
-
- {actions.length ? (
- <>
- {
- if (Object.keys(alertStore.data.clustersWithoutReadOnly).length) {
- onSilenceClick(alertStore, silenceFormStore, group, alert);
- afterClick();
+ className="dropdown-menu d-block shadow m-0"
+ ref={(node) => {
+ if (typeof floating === "function") {
+ floating(node);
+ } else if (floating) {
+ floating.current = node;
+ }
+ if (typeof ref === "function") {
+ ref(node);
+ } else if (ref) {
+ ref.current = node;
}
}}
+ style={{
+ position: strategy,
+ top: y,
+ left: x,
+ }}
>
-
- Silence this alert
+
Alert source links:
+ {alert.alertmanager.map((am) => (
+
+ ))}
+
+
{
+ copy(JSON.stringify(alertToJSON(group, alert)));
+ afterClick();
+ }}
+ >
+
+ Copy to clipboard
+
+ {actions.length ? (
+ <>
+
+
Actions:
+ {actions.map((action) => (
+
+ ))}
+ >
+ ) : null}
+
+
{
+ if (Object.keys(alertStore.data.clustersWithoutReadOnly).length) {
+ onSilenceClick(alertStore, silenceFormStore, group, alert);
+ afterClick();
+ }
+ }}
+ >
+
+ Silence this alert
+
-