From ab796918a3c7f582b492385a1701376f8a44e78b Mon Sep 17 00:00:00 2001 From: zafer Date: Sat, 25 May 2024 12:45:32 +0300 Subject: [PATCH] fix paths --- lib/algora_web/live/show_live/index.html.heex | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/algora_web/live/show_live/index.html.heex b/lib/algora_web/live/show_live/index.html.heex index 3f9ee93..09455cc 100644 --- a/lib/algora_web/live/show_live/index.html.heex +++ b/lib/algora_web/live/show_live/index.html.heex @@ -1,7 +1,7 @@ <.header> Listing Shows <:actions> - <.link patch={~p"/admin/shows/new"}> + <.link patch={~p"/shows/new"}> <.button>New Show @@ -32,18 +32,13 @@ -<.modal - :if={@live_action in [:new, :edit]} - id="show-modal" - show - on_cancel={JS.patch(~p"/admin/shows")} -> +<.modal :if={@live_action in [:new, :edit]} id="show-modal" show on_cancel={JS.patch(~p"/shows")}> <.live_component module={AlgoraWeb.ShowLive.FormComponent} id={@show.id || :new} title={@page_title} action={@live_action} show={@show} - patch={~p"/admin/shows"} + patch={~p"/shows"} />