fix patch links to working properly
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -133,7 +133,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | ||||
|  | ||||
|     {ammo_type.name, | ||||
|      ~H""" | ||||
|      <.link patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} class="link"> | ||||
|      <.link navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} class="link"> | ||||
|        <%= @ammo_type.name %> | ||||
|      </.link> | ||||
|      """} | ||||
| @@ -202,7 +202,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | ||||
|     ~H""" | ||||
|     <div class="py-2 px-4 h-full space-x-4 flex justify-center items-center"> | ||||
|       <.link | ||||
|         patch={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} | ||||
|         navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} | ||||
|         class="text-primary-600 link" | ||||
|         data-qa={"view-#{@ammo_group.id}"} | ||||
|       > | ||||
| @@ -240,7 +240,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | ||||
|      ~H""" | ||||
|      <div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center"> | ||||
|        <.link | ||||
|          patch={Routes.container_show_path(Endpoint, :show, @ammo_group.container)} | ||||
|          navigate={Routes.container_show_path(Endpoint, :show, @ammo_group.container)} | ||||
|          class="mx-2 my-1 link" | ||||
|        > | ||||
|          <%= @ammo_group.container.name %> | ||||
|   | ||||
| @@ -17,7 +17,7 @@ | ||||
|           <%= dgettext("prompts", "You'll need to") %> | ||||
|         </h2> | ||||
|  | ||||
|         <.link patch={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary"> | ||||
|         <.link navigate={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary"> | ||||
|           <%= dgettext("actions", "add a container first") %> | ||||
|         </.link> | ||||
|       </div> | ||||
| @@ -27,7 +27,7 @@ | ||||
|           <%= dgettext("prompts", "You'll need to") %> | ||||
|         </h2> | ||||
|  | ||||
|         <.link patch={Routes.ammo_type_index_path(Endpoint, :new)} class="btn btn-primary"> | ||||
|         <.link navigate={Routes.ammo_type_index_path(Endpoint, :new)} class="btn btn-primary"> | ||||
|           <%= dgettext("actions", "add an ammo type first") %> | ||||
|         </.link> | ||||
|       </div> | ||||
|   | ||||
| @@ -53,7 +53,7 @@ | ||||
|   <div class="flex flex-col justify-center items-center"> | ||||
|     <div class="flex flex-wrap justify-center items-center text-primary-600"> | ||||
|       <.link | ||||
|         patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_group.ammo_type)} | ||||
|         navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_group.ammo_type)} | ||||
|         class="mx-4 my-2 btn btn-primary" | ||||
|         data-qa="details" | ||||
|       > | ||||
|   | ||||
| @@ -124,7 +124,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do | ||||
|  | ||||
|     ~H""" | ||||
|     <.link | ||||
|       patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} | ||||
|       navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} | ||||
|       class="link" | ||||
|       data-qa={"view-name-#{@ammo_type.id}"} | ||||
|     > | ||||
| @@ -139,7 +139,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do | ||||
|     ~H""" | ||||
|     <div class="px-4 py-2 space-x-4 flex justify-center items-center"> | ||||
|       <.link | ||||
|         patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} | ||||
|         navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} | ||||
|         class="text-primary-600 link" | ||||
|         data-qa={"view-#{@ammo_type.id}"} | ||||
|       > | ||||
|   | ||||
| @@ -154,7 +154,10 @@ defmodule CanneryWeb.RangeLive.Index do | ||||
|           :name -> | ||||
|             {shot_group.ammo_group.ammo_type.name, | ||||
|              ~H""" | ||||
|              <.link patch={Routes.ammo_group_show_path(Endpoint, :show, @shot_group.ammo_group)} class="link"> | ||||
|              <.link | ||||
|                navigate={Routes.ammo_group_show_path(Endpoint, :show, @shot_group.ammo_group)} | ||||
|                class="link" | ||||
|              > | ||||
|                <%= @shot_group.ammo_group.ammo_type.name %> | ||||
|              </.link> | ||||
|              """} | ||||
|   | ||||
| @@ -9,11 +9,11 @@ | ||||
|       <%= display_emoji("😔") %> | ||||
|     </h1> | ||||
|  | ||||
|     <.link patch={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary"> | ||||
|     <.link navigate={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary"> | ||||
|       <%= dgettext("actions", "Why not get some ready to shoot?") %> | ||||
|     </.link> | ||||
|   <% else %> | ||||
|     <.link patch={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary"> | ||||
|     <.link navigate={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary"> | ||||
|       <%= dgettext("actions", "Stage ammo") %> | ||||
|     </.link> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user