Fix DBIServer FormComponent to allow edit only other servers' sync_on?.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user