change invite path slightly
	
		
			
	
		
	
	
		
	
		
			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:
		| @@ -1,6 +1,7 @@ | |||||||
| # v0.1.12 | # v0.1.12 | ||||||
| - ee cummings even more | - ee cummings even more | ||||||
| - Improve tests | - Improve tests | ||||||
|  | - Change invite path slightly | ||||||
| # v0.1.11 | # v0.1.11 | ||||||
| - Update dependencies | - Update dependencies | ||||||
|  |  | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ | |||||||
|         </form> |         </form> | ||||||
|       </:code_actions> |       </:code_actions> | ||||||
|       <.link |       <.link | ||||||
|         patch={~p"/invites/#{invite}/edit"} |         patch={~p"/invites/edit/#{invite}"} | ||||||
|         class="text-primary-400 link" |         class="text-primary-400 link" | ||||||
|         aria-label={ |         aria-label={ | ||||||
|           dgettext("actions", "edit invite for %{invite_name}", invite_name: invite.name) |           dgettext("actions", "edit invite for %{invite_name}", invite_name: invite.name) | ||||||
|   | |||||||
| @@ -95,7 +95,7 @@ defmodule MemexWeb.Router do | |||||||
|     live_session :admin, on_mount: [{MemexWeb.UserAuth, :ensure_admin}] do |     live_session :admin, on_mount: [{MemexWeb.UserAuth, :ensure_admin}] do | ||||||
|       live "/invites", InviteLive.Index, :index |       live "/invites", InviteLive.Index, :index | ||||||
|       live "/invites/new", InviteLive.Index, :new |       live "/invites/new", InviteLive.Index, :new | ||||||
|       live "/invites/:id/edit", InviteLive.Index, :edit |       live "/invites/edit/:id", InviteLive.Index, :edit | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   | |||||||
| @@ -51,7 +51,7 @@ defmodule MemexWeb.InviteLiveTest do | |||||||
|              |> element(~s/a[aria-label="edit invite for #{invite.name}"]/) |              |> element(~s/a[aria-label="edit invite for #{invite.name}"]/) | ||||||
|              |> render_click() =~ "edit invite" |              |> render_click() =~ "edit invite" | ||||||
|  |  | ||||||
|       assert_patch(index_live, ~p"/invites/#{invite}/edit") |       assert_patch(index_live, ~p"/invites/edit/#{invite}") | ||||||
|  |  | ||||||
|       assert index_live |       assert index_live | ||||||
|              |> form("#invite-form") |              |> form("#invite-form") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user