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
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:
parent
18de6aa42d
commit
4f07acb051
@ -847,13 +847,8 @@ async function submitGuest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteGuest(guestId) {
|
async function deleteGuest(guestId) {
|
||||||
if (typeof nordaConfirm === 'function') {
|
if (!confirm('Czy na pewno chcesz usunąć tę osobę towarzyszącą?')) return;
|
||||||
nordaConfirm('Czy na pewno chcesz usunąć tę osobę towarzyszącą?', async () => {
|
await doDeleteGuest(guestId);
|
||||||
await doDeleteGuest(guestId);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
await doDeleteGuest(guestId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function doDeleteGuest(guestId) {
|
async function doDeleteGuest(guestId) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user