fix: move sync schedule block inside integration scope

The sync schedule section referenced `integration` variable outside
the if-block where it was assigned, causing compilation failure.
This commit is contained in:
Graham McIntire 2026-02-13 16:51:52 -06:00
parent 314d93f3ab
commit ab8039d59b
No known key found for this signature in database

View file

@ -119,23 +119,22 @@
Reconciliation →
</.link>
<% end %>
</div>
<% end %>
<%!-- Sync schedule info --%>
<%= if integration.enabled do %>
<div class="mt-3 rounded-md bg-gray-50 p-3 dark:bg-gray-800/50">
<h4 class="text-xs font-semibold text-gray-700 dark:text-gray-300">
<.icon name="hero-clock" class="h-3.5 w-3.5 inline" /> Sync Schedule
</h4>
<p class="mt-1 text-xs text-gray-500 dark:text-gray-400">
<%= if provider.id == "preseem" do %>
Syncs every {integration.sync_interval_minutes} minutes. Baselines and fleet profiles computed nightly.
<% end %>
<%= if provider.id == "gaiia" do %>
Syncs every {integration.sync_interval_minutes} minutes. Reconciliation runs nightly. Also receives real-time webhook updates.
<% end %>
</p>
<%!-- Sync schedule info --%>
<%= if integration.enabled do %>
<div class="mt-3 rounded-md bg-gray-50 p-3 dark:bg-gray-800/50">
<h4 class="text-xs font-semibold text-gray-700 dark:text-gray-300">
<.icon name="hero-clock" class="h-3.5 w-3.5 inline" /> Sync Schedule
</h4>
<p class="mt-1 text-xs text-gray-500 dark:text-gray-400">
<%= if provider.id == "preseem" do %>
Syncs every {integration.sync_interval_minutes} minutes. Baselines and fleet profiles computed nightly.
<% end %>
<%= if provider.id == "gaiia" do %>
Syncs every {integration.sync_interval_minutes} minutes. Reconciliation runs nightly. Also receives real-time webhook updates.
<% end %>
</p>
</div>
<% end %>
</div>
<% end %>
</div>