mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 13:59:08 +02:00
do not close edit when generating invite code
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user