Making it easy to move an Entry to a different Journal.

This commit is contained in:
Scott Idem
2025-04-11 12:01:13 -04:00
parent bd1ceee1ad
commit 9adcc6d54c
2 changed files with 87 additions and 3 deletions

View File

@@ -50,6 +50,15 @@ let lq__journal_obj = $derived(liveQuery(async () => {
return results;
}));
let lq__journal_obj_li = $derived(liveQuery(async () => {
let results = await db_journals.journal
.where('person_id')
.equals($ae_loc.person_id)
.reverse()
.sortBy('tmp_sort_2')
return results;
}));
// For some reason data.params.journal_entry_id (or whatever param) is not being passed to this page when loaded by a link from another page. This seems to be a bug with Svelte or SvelteKit. Hopefully fixed in a future version 5? 2024-11-06
$journals_slct.journal_entry_id = ae_acct.slct.journal_entry_id;
// $journals_slct.journal_entry_obj = ae_acct.slct.journal_entry_obj;
@@ -105,6 +114,7 @@ let lq__journal_entry_obj = $derived(liveQuery(async () => {
{#if $lq__journal_entry_obj}
<Journal_entry_view
lq__journal_obj={lq__journal_obj}
lq__journal_obj_li={lq__journal_obj_li}
lq__journal_entry_obj={lq__journal_entry_obj}
/>
{/if}