Fix DBIServer FormComponent to allow edit only other servers' sync_on?.
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-20 22:13:10 +03:00
parent ffbec934a6
commit db025ece6a
2 changed files with 28 additions and 1 deletions
@@ -20,7 +20,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.FormComponent do
<.input field={@form[:name]} type="text" label="Name" />
<.input field={@form[:url]} type="text" label="Url" />
<% end %>
<%= if @form.source.type == :update and is_nil(@form[:dbi_server].value) do %>
<%= if @form.source.type == :update and is_nil(@form[:dbi_server_id].value) do %>
<.input field={@form[:name]} type="text" label="Name" />
<.input field={@form[:url]} type="text" label="Url" />
<% end %>