Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(alerts): hide misleading Backup/Snapshot inputs in Global Defaults card, preserve per-resource backup config on threshold edit

rcourtman6b237db9239b
diff --git a/frontend-modern/src/components/Alerts/ResourceTable.tsx b/frontend-modern/src/components/Alerts/ResourceTable.tsx
index 3265a892f1..3121e739dd 100644
--- a/frontend-modern/src/components/Alerts/ResourceTable.tsx
+++ b/frontend-modern/src/components/Alerts/ResourceTable.tsx
@@ -511,7 +511,7 @@ export function ResourceTable(props: ResourceTableProps) {
</div>
<div class="grid grid-cols-2 gap-2">
- <For each={props.columns}>
+ <For each={props.columns.filter((c) => { const m = normalizeMetricKey(c); return m !== 'backup' && m !== 'snapshot'; })}>
{(column) => {
const metric = normalizeMetricKey(column);
const bounds = metricBounds(metric);
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
index 102e6b33d1..3c35281dc2 100644
--- a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
+++ b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
@@ -2062,6 +2062,12 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
} else {
delete hysteresisThresholds.note;
}
+ if (previousRaw?.backup) {
+ hysteresisThresholds.backup = previousRaw.backup;
+ }
+ if (previousRaw?.snapshot) {
+ hysteresisThresholds.snapshot = previousRaw.snapshot;
+ }
newRawConfig[resourceId] = hysteresisThresholds;
props.setRawOverridesConfig(newRawConfig);