This commit is contained in:
parent
e6ef0a8c68
commit
ab1a288928
@ -1,5 +1,6 @@
|
|||||||
# v0.9.4
|
# v0.9.4
|
||||||
- Improve tests
|
- Improve tests
|
||||||
|
- Change invite path slightly
|
||||||
|
|
||||||
# v0.9.3
|
# v0.9.3
|
||||||
- Update dependencies
|
- Update dependencies
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</:code_actions>
|
</:code_actions>
|
||||||
<.link
|
<.link
|
||||||
patch={~p"/invites/#{invite}/edit"}
|
patch={~p"/invites/edit/#{invite}"}
|
||||||
class="text-primary-600 link"
|
class="text-primary-600 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)
|
||||||
|
@ -112,7 +112,7 @@ defmodule CanneryWeb.Router do
|
|||||||
live_session :admin, on_mount: [{CanneryWeb.UserAuth, :ensure_admin}] do
|
live_session :admin, on_mount: [{CanneryWeb.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 CanneryWeb.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")
|
||||||
|
Loading…
Reference in New Issue
Block a user