From 89822ef540048e249bb6e97c0703490bc37ec9a1 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 6 May 2025 18:17:39 -0400 Subject: [PATCH] Progress on moving must buttons and secondary things to the Journal Entry menu. --- .../ae_comp__journal_entry_obj_id_view.svelte | 491 +++++++++++++----- 1 file changed, 368 insertions(+), 123 deletions(-) diff --git a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte index 12188670..3a0fe028 100644 --- a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte +++ b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte @@ -51,6 +51,9 @@ let ae_promises: key_val = $state({}); // let ae_trigger: any = null; // let ae_triggers: key_val = {}; +let show_menu: boolean = $state(false); + + // let orig_entry_obj: key_val = $state({}); let orig_entry_obj: key_val|null = $state({}); let tmp_entry_obj_changed: boolean = $state(false); @@ -168,6 +171,7 @@ async function update_journal_entry() { history: tmp_entry_obj?.history, history_encrypted: null, // This should only be generated below. + sort: tmp_entry_obj?.sort, group: tmp_entry_obj?.group, archive_on: tmp_entry_obj?.archive_on, name: tmp_entry_obj?.name, @@ -611,7 +615,7 @@ function handle_cut_string(old_string: string) {
-
+
- - - - - - - - - -
- -
+
+
{#if $journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id]} @@ -901,9 +785,370 @@ function handle_cut_string(old_string: string) {
+
+ + + + + {#if show_menu} +
+ +
+ + + + + + + + + + +
+ +
+ + +
+ + + + + + + + {#if $lq__journal_entry_obj?.sort} + {$lq__journal_entry_obj.sort} + {:else} + + + {/if} + + + + + + + { + update_journal_entry(); + }} + class:hidden={!$ae_loc.edit_mode} + class="input input-sm input-bordered w-full mb-2" + title="Set group (for sorting) of this journal entry" + /> + + + + + { + update_journal_entry(); + }} + class:hidden={!$ae_loc.edit_mode} + class="input input-sm input-bordered w-auto border-none" + title="Set archive on datetime for archiving this journal entry" + /> + + {#if $lq__journal_entry_obj?.archive_on} + + + {:else} + + + {/if} + + + + + + + + + + + +
+ + +
+ {/if} + +
+ +
+
+