Update Server's edit action to prevent change other server's data.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 2 months ago
parent 3f157e5a00
commit c96aac44cd

@ -8,11 +8,13 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Show do
{@dbi_server.name} {@dbi_server.name}
<:actions> <:actions>
<%= if is_nil(@dbi_server.dbi_server) do %>
<.link patch={~p"/servers/#{@dbi_server}/edit"} phx-click={JS.push_focus()}> <.link patch={~p"/servers/#{@dbi_server}/edit"} phx-click={JS.push_focus()}>
<.edit_button> <.edit_button>
Edit Edit
</.edit_button> </.edit_button>
</.link> </.link>
<% end %>
</:actions> </:actions>
</.header> </.header>

Loading…
Cancel
Save