do not close edit when generating invite code

This commit is contained in:
2025-06-25 15:14:30 +02:00
parent 7397ba0ccc
commit 40e557f8c7

View File

@@ -30,7 +30,9 @@
) {
draftPerson[field] = value;
if (field === 'invite_code') {
save();
save().then(() => {
editorMode = true;
});
return;
}
}
@@ -56,7 +58,7 @@
});
if (!response.ok) {
alert('Error saving person data, status: ' + response.status);
alert('Error saving person data, status: ' + response.status + (await response.json()));
return;
}
@@ -82,8 +84,8 @@
</script>
<div class="modal modal-open" transition:fade>
<div class="modal-box max-h-screen w-full max-h-80 max-w-5xl overflow-y-auto">
<div class="bg-base-100 sticky top-0 z-7">
<div class="modal-box max-h-80 max-h-screen w-full max-w-5xl overflow-y-auto">
<div class="bg-base-100 z-7 sticky top-0">
<ModalButtons {editorMode} onClose={close} onSave={save} onToggleEdit={toggleEdit} />
<div class="divider"></div>
</div>