fix(calendar): use native confirm() for guest deletion dialog
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

nordaConfirm() expects (form, message, options) for form submission,
not a callback. Using native confirm() for AJAX-based guest deletion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-31 16:25:22 +02:00
parent 18de6aa42d
commit 4f07acb051

View File

@ -847,13 +847,8 @@ async function submitGuest() {
}
async function deleteGuest(guestId) {
if (typeof nordaConfirm === 'function') {
nordaConfirm('Czy na pewno chcesz usunąć tę osobę towarzyszącą?', async () => {
await doDeleteGuest(guestId);
});
} else {
await doDeleteGuest(guestId);
}
if (!confirm('Czy na pewno chcesz usunąć tę osobę towarzyszącą?')) return;
await doDeleteGuest(guestId);
}
async function doDeleteGuest(guestId) {