mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 11:46:28 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user