A quick save while the new exports are fully working. The prepend and append also work now.

This commit is contained in:
Scott Idem
2026-01-14 12:29:47 -05:00
parent 228f0ecf06
commit b80cbb7c2b
6 changed files with 68 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
import { goto } from '$app/navigation';
// *** Import other supporting libraries
import { BookPlus, BookOpenText, FilePlus, Menu, Pencil } from '@lucide/svelte';
import { BookPlus, BookOpenText, FilePlus, Menu, Pencil, FileDown } from '@lucide/svelte';
// *** Import Aether specific variables and functions
import { ae_util } from '$lib/ae_utils/ae_utils';
@@ -29,9 +29,10 @@
log_lvl?: number;
lq__journal_obj: any;
lq__journal_entry_obj_li: any;
onShowExport?: () => void;
}
let { log_lvl = 0, lq__journal_obj, lq__journal_entry_obj_li }: Props = $props();
let { log_lvl = 0, lq__journal_obj, lq__journal_entry_obj_li, onShowExport }: Props = $props();
// let ae_promises: key_val = {};
// let ae_tmp: key_val = {};
@@ -265,6 +266,26 @@
<Pencil />
<span class="hidden md:inline"> Edit Journal </span>
</button>
{#if $lq__journal_entry_obj_li && $lq__journal_entry_obj_li.length > 0}
<button
type="button"
onclick={() => {
show_menu = false;
onShowExport?.();
}}
class="
btn btn-sm
preset-tonal-secondary border border-secondary-500
hover:preset-filled-secondary-500
transition
"
title="Export journal entries"
>
<FileDown />
<span class="hidden md:inline"> Export Entries </span>
</button>
{/if}
</div>
<!-- Set Journal private_passcode (string) -->