diff --git a/lib/decentralised_book_index_web/live/author_live/show.ex b/lib/decentralised_book_index_web/live/author_live/show.ex index 42a0ee1..fcb40d3 100644 --- a/lib/decentralised_book_index_web/live/author_live/show.ex +++ b/lib/decentralised_book_index_web/live/author_live/show.ex @@ -9,7 +9,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Show do <:subtitle>This is a author record from your database. <:actions> - <.link patch={~p"/authors/#{@author}/show/edit"} phx-click={JS.push_focus()}> + <.link navigate={~p"/authors/#{@author}/edit"}> <.button>Edit author @@ -26,23 +26,6 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Show do <.back navigate={~p"/authors"}>Back to authors - - <.modal - :if={@live_action == :edit} - id="author-modal" - show - on_cancel={JS.patch(~p"/authors/#{@author}")} - > - <.live_component - module={DecentralisedBookIndexWeb.AuthorLive.FormComponent} - id={@author.id} - title={@page_title} - action={@live_action} - current_user={@current_user} - author={@author} - patch={~p"/authors/#{@author}"} - /> - """ end