Skip to content

Commit

Permalink
fix: change reject action URL on /account/invites page (#827)
Browse files Browse the repository at this point in the history
Fixes #119

---------

Co-authored-by: Leo Kettmeir <[email protected]>
  • Loading branch information
gioboa and crowlKats authored Nov 18, 2024
1 parent ebdc3a6 commit 9655b27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/routes/account/invites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ function InviteRow({ invite }: { invite: ScopeInvite }) {
</TableData>
<TableData>
<div class="space-x-4">
<form id="reject-form" method="POST">
<input type="hidden" name="scope" value={invite.scope} />
</form>
<form
class="flex gap-4"
action={`/@${invite.scope}`}
Expand All @@ -77,6 +80,7 @@ function InviteRow({ invite }: { invite: ScopeInvite }) {
title={`Reject invite to @${invite.scope}`}
name="action"
value="reject"
form="reject-form"
>
Reject
</button>
Expand Down

0 comments on commit 9655b27

Please sign in to comment.