From 69796043fc49a2ee12b7237f2062add8b0c0c57a Mon Sep 17 00:00:00 2001 From: Adrian Salamon Date: Tue, 3 Oct 2023 15:19:18 -0700 Subject: [PATCH] fix: route name overlap --- lib/haj_web/live/applications_live/index.html.heex | 2 +- lib/haj_web/router.ex | 2 +- lib/haj_web/templates/application/index.html.heex | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 lib/haj_web/templates/application/index.html.heex diff --git a/lib/haj_web/live/applications_live/index.html.heex b/lib/haj_web/live/applications_live/index.html.heex index 1c409e3..9bc2c7a 100644 --- a/lib/haj_web/live/applications_live/index.html.heex +++ b/lib/haj_web/live/applications_live/index.html.heex @@ -36,7 +36,7 @@ /> <.link - href={~p"/applications/export"} + href={~p"/applications/export/csv"} class="mt-1 flex flex-row items-center rounded-md border border-gray-300 bg-white px-3 py-2 shadow-sm hover:bg-gray-50" > <.icon name={:arrow_down_on_square_stack} mini class="h-5 w-5" /> diff --git a/lib/haj_web/router.ex b/lib/haj_web/router.ex index b5c0c88..d7f392f 100644 --- a/lib/haj_web/router.ex +++ b/lib/haj_web/router.ex @@ -181,7 +181,7 @@ defmodule HajWeb.Router do pipe_through :require_applications_read # get "/applications", ApplicationController, :index - get "/applications/export", ApplicationController, :export + get "/applications/export/csv", ApplicationController, :export end end diff --git a/lib/haj_web/templates/application/index.html.heex b/lib/haj_web/templates/application/index.html.heex deleted file mode 100644 index 9e6f222..0000000 --- a/lib/haj_web/templates/application/index.html.heex +++ /dev/null @@ -1,11 +0,0 @@ -
-
-
Ansökningar
-
- <%= link("Exportera som csv", to: Routes.application_path(@conn, :export)) %> -
-
-
- <%= live_render(@conn, HajWeb.ApplicationsLive) %> -
-