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:
parent
314d93f3ab
commit
ab8039d59b
1 changed files with 16 additions and 17 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue