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:
Scott Idem
2026-03-13 16:25:00 -04:00
parent 61c020b0b2
commit 50bfe2f64b
2 changed files with 1 additions and 8 deletions

View File

@@ -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 ?? []}

View File

@@ -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}