From 72691f70702f9aee3da2ffd6432bc5667f301111 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 1 Jun 2025 17:48:47 +0200 Subject: [PATCH] Add a confirmation dialog --- app/ui/invitations/board.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/ui/invitations/board.tsx b/app/ui/invitations/board.tsx index b1517b3..8053d88 100644 --- a/app/ui/invitations/board.tsx +++ b/app/ui/invitations/board.tsx @@ -54,9 +54,11 @@ function InvitationCard({ invitation, allGuests, onGuestAdded, onDestroy }: { { - api.destroy(serializer, invitation, () => { - onDestroy(invitation); - }); + if (window.confirm("Are you sure you want to delete this invitation?")) { + api.destroy(serializer, invitation, () => { + onDestroy(invitation); + }); + } }} />