From b038bb1fc04118a63b7a546d497170272cbd8569 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 4 May 2025 21:57:31 +0300 Subject: [PATCH] Update the DBIserver form to update the sync_on. --- .../live/dbi_server_live/form_component.ex | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/decentralised_book_index_web/live/dbi_server_live/form_component.ex b/lib/decentralised_book_index_web/live/dbi_server_live/form_component.ex index 22d1a27..0d3e3d6 100644 --- a/lib/decentralised_book_index_web/live/dbi_server_live/form_component.ex +++ b/lib/decentralised_book_index_web/live/dbi_server_live/form_component.ex @@ -16,11 +16,9 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.FormComponent do phx-change="validate" phx-submit="save" > - <.input field={@form[:name]} type="text" label="Name" /><.input - field={@form[:url]} - type="text" - label="Url" - /> + <.input field={@form[:name]} type="text" label="Name" /> + <.input field={@form[:url]} type="text" label="Url" /> + <.input field={@form[:sync_on?]} type="checkbox" label="Sync on" /> <:actions> <.save_button phx-disable-with="Saving...">