forked from shibao/cannery
		
	change invite path
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
# v0.9.4
 | 
			
		||||
- Improve tests
 | 
			
		||||
- Change invite path slightly
 | 
			
		||||
 | 
			
		||||
# v0.9.3
 | 
			
		||||
- Update dependencies
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@
 | 
			
		||||
        </form>
 | 
			
		||||
      </:code_actions>
 | 
			
		||||
      <.link
 | 
			
		||||
        patch={~p"/invites/#{invite}/edit"}
 | 
			
		||||
        patch={~p"/invites/edit/#{invite}"}
 | 
			
		||||
        class="text-primary-600 link"
 | 
			
		||||
        aria-label={
 | 
			
		||||
          dgettext("actions", "Edit invite for %{invite_name}", invite_name: invite.name)
 | 
			
		||||
 
 | 
			
		||||
@@ -112,7 +112,7 @@ defmodule CanneryWeb.Router do
 | 
			
		||||
    live_session :admin, on_mount: [{CanneryWeb.UserAuth, :ensure_admin}] do
 | 
			
		||||
      live "/invites", InviteLive.Index, :index
 | 
			
		||||
      live "/invites/new", InviteLive.Index, :new
 | 
			
		||||
      live "/invites/:id/edit", InviteLive.Index, :edit
 | 
			
		||||
      live "/invites/edit/:id", InviteLive.Index, :edit
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ defmodule CanneryWeb.InviteLiveTest do
 | 
			
		||||
             |> element(~s/a[aria-label="Edit invite for #{invite.name}"]/)
 | 
			
		||||
             |> render_click() =~ "Edit Invite"
 | 
			
		||||
 | 
			
		||||
      assert_patch(index_live, ~p"/invites/#{invite}/edit")
 | 
			
		||||
      assert_patch(index_live, ~p"/invites/edit/#{invite}")
 | 
			
		||||
 | 
			
		||||
      assert index_live
 | 
			
		||||
             |> form("#invite-form")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user