Feature: Mark guests as invited #60

Merged
bustikiller merged 9 commits from guest-status-changes into main 2024-10-27 18:28:22 +00:00
Showing only changes of commit 03b3a318c0 - Show all commits

View File

@ -32,13 +32,13 @@ export default function guestsTable() {
fetch("/api/guests/bulk_update.json",
{
method: 'POST',
body: JSON.stringify({ properties: { status: "Invited" }, guest_ids: [e.currentTarget.getAttribute('data-guest-id')] }),
body: JSON.stringify({ properties: { status: "invited" }, guest_ids: [e.currentTarget.getAttribute('data-guest-id')] }),
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
})
.then((response) => console.log(response.json()))
.then(() => loadGuests())
.catch((error) => console.error(error));
}