+ {item.muted && (
+ <>
+ {" "}
+
+ Muted
+ {item.mutedUntil ? ` until ${formatDate(item.mutedUntil)}` : ""}
+
+ >
+ )}
+ {item.muted && item.muteReason && (
+
Mute reason: {item.muteReason}
+ )}
+ {view === "alerts" && canOperate && (
+
+ {item.muted && item.muteId ? (
+
+ ) : mutingId === item.id ? (
+
+ ) : (
+
+ )}
+
+ )}
))}
diff --git a/ui/Bower.Management.Web/src/types.ts b/ui/Bower.Management.Web/src/types.ts
index e28e26a9..fececf5f 100644
--- a/ui/Bower.Management.Web/src/types.ts
+++ b/ui/Bower.Management.Web/src/types.ts
@@ -442,6 +442,10 @@ export interface HomeAttention {
message: string;
fix: HomeFix;
count: number;
+ muted?: boolean;
+ muteId?: string | null;
+ mutedUntil?: string | null;
+ muteReason?: string | null;
}
/** One collector group (environment); the worst condition gives the state and the reason. */