fix(journals): remove duplicate Journal_obj_id_edit modal and fix bind:show
- [journal_id]/+page.svelte was rendering a second Journal_obj_id_edit
alongside the one already in ae_comp__journal_obj_id_view.svelte,
causing the modal to open twice simultaneously.
- ae_comp__journal_obj_id_view: changed show={} to bind:show={} so that
closing the modal properly writes back to journals_sess, preventing the
store from fighting the close and re-opening it.
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
|
||||
import AeCompJournalObjIdView from './../ae_comp__journal_obj_id_view.svelte';
|
||||
import Journal_entry_obj_li_wrapper from './../ae_comp__journal_entry_obj_li_wrapper.svelte';
|
||||
import Journal_obj_id_edit from '../ae_comp__journal_obj_id_edit.svelte';
|
||||
import AeCompModalJournalExport from '../ae_comp__modal_journal_export.svelte';
|
||||
import AeCompModalJournalImport from '../ae_comp__modal_journal_import.svelte';
|
||||
|
||||
@@ -321,12 +320,6 @@
|
||||
{log_lvl}
|
||||
/>
|
||||
|
||||
<Journal_obj_id_edit
|
||||
{log_lvl}
|
||||
{lq__journal_obj}
|
||||
show={$journals_sess.show__modal_edit__journal_obj}
|
||||
/>
|
||||
|
||||
<AeCompModalJournalExport
|
||||
bind:open={show_export_modal}
|
||||
entries={$lq__journal_entry_obj_li ?? []}
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
<Journal_obj_id_edit
|
||||
{log_lvl}
|
||||
{lq__journal_obj}
|
||||
show={$journals_sess.show__modal_edit__journal_obj}
|
||||
bind:show={$journals_sess.show__modal_edit__journal_obj}
|
||||
on_new_entry={handle_new_entry}
|
||||
{on_show_export}
|
||||
{on_show_import}
|
||||
|
||||
Reference in New Issue
Block a user