diff --git a/lib/decentralised_book_index_web/live/dbi_server_live/show.ex b/lib/decentralised_book_index_web/live/dbi_server_live/show.ex index 403b64c..d270fb1 100644 --- a/lib/decentralised_book_index_web/live/dbi_server_live/show.ex +++ b/lib/decentralised_book_index_web/live/dbi_server_live/show.ex @@ -8,11 +8,13 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Show do {@dbi_server.name} <:actions> - <.link patch={~p"/servers/#{@dbi_server}/edit"} phx-click={JS.push_focus()}> - <.edit_button> - Edit - - + <%= if is_nil(@dbi_server.dbi_server) do %> + <.link patch={~p"/servers/#{@dbi_server}/edit"} phx-click={JS.push_focus()}> + <.edit_button> + Edit + + + <% end %>