Lots of updates. And now with the ability to copy the rendered HTML version!

This commit is contained in:
Scott Idem
2025-04-02 15:30:36 -04:00
parent 7fa0d5cc5b
commit e653d4d92a
7 changed files with 103 additions and 82 deletions

View File

@@ -138,20 +138,8 @@ let tmp_entry_obj: key_val = $state({});
type="button"
onclick={() => {
// Clone the journal entry
// let data_kv = {
// ...journals_journal_entry_obj,
// };
// // Remove specific fields that should not be cloned
// delete data_kv.journal_entry_id;
// delete data_kv.id; // Ensure we do not copy the ID
// delete data_kv.template;
// delete data_kv.notes;
// delete data_kv.created_on;
// delete data_kv.updated_on;
// We only want to clone certain fields from the original journal entry object to avoid conflicts.
let data_kv = {
// journal_id_random: journals_journal_entry_obj.journal_id,
code: journals_journal_entry_obj.code,
category_code: journals_journal_entry_obj.category_code,
name: journals_journal_entry_obj.name,
@@ -159,7 +147,6 @@ let tmp_entry_obj: key_val = $state({});
content: journals_journal_entry_obj.content,
description: journals_journal_entry_obj.description,
tags: journals_journal_entry_obj.tags,
};
journals_func.create_ae_obj__journal_entry({