Saving the new documentation for Svelte and Dexie made by Gemini. Saving changes made by Gemini to fix various things.

This commit is contained in:
Scott Idem
2025-11-17 14:09:33 -05:00
parent 02169f1cb9
commit c4fa35e86e
8 changed files with 149 additions and 30 deletions

View File

@@ -380,16 +380,9 @@ $effect(() => {
<button
type="button"
onclick={() => {
// if ($journals_sess.show__modal_append__journal_entry_id) {
// // $journals_sess.show__modal_append__journal_entry_id = null;
// $journals_sess.show__modal_append__journal_entry_id = journals_journal_entry_obj?.id;
// tmp_entry_obj = journals_journal_entry_obj;
// } else {
// $journals_sess.show__modal_append__journal_entry_id = journals_journal_entry_obj?.id;
// tmp_entry_obj = journals_journal_entry_obj;
// }
$journals_sess.show__modal_append__journal_entry_id = journals_journal_entry_obj?.id;
tmp_entry_obj = journals_journal_entry_obj;
// Create a deep copy of the object for editing to prevent direct mutation of the liveQuery result.
tmp_entry_obj = JSON.parse(JSON.stringify(journals_journal_entry_obj));
}}
class="btn btn-icon btn-sm preset-tonal-surface border border-surface-500 hover:preset-filled-secondary-500 transition"
title="{$lq__journal_obj?.cfg_json?.entry_add_text == 'append' ? 'Append to Journal Entry' : 'Prepend to Journal Entry'}"