fix: show offline alerts toggle only once per PMG instance

Each of the 4 PMG threshold tables was showing its own offline alerts column, resulting in 4 duplicate toggles per instance. Now only the first table displays the offline alerts column since the setting is per-instance, not per-threshold-group.
This commit is contained in:
rcourtman
2025-10-11 11:52:09 +00:00
parent c827b7cc59
commit 539dc9495b
@@ -1850,7 +1850,7 @@ const dockerContainersGroupedByHost = createMemo<Record<string, Resource[]>>((pr
>
<div class="space-y-6">
<For each={PMG_COLUMN_GROUPS}>
{(group) => (
{(group, index) => (
<div class="border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden">
<ResourceTable
title={`Mail Gateway Thresholds (${group
@@ -1866,7 +1866,7 @@ const dockerContainersGroupedByHost = createMemo<Record<string, Resource[]>>((pr
onRemoveOverride={removeOverride}
onToggleDisabled={toggleDisabled}
onToggleNodeConnectivity={toggleNodeConnectivity}
showOfflineAlertsColumn={true}
showOfflineAlertsColumn={index() === 0}
editingId={editingId}
editingThresholds={editingThresholds}
setEditingThresholds={setEditingThresholds}