A quick save while the new exports are fully working. The prepend and append also work now.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
Clock, X, Trash2, Settings, Shapes,
|
||||
Copy, RemoveFormatting, CodeXml, TypeOutline,
|
||||
History, Pencil, PenLine, FileX, SquareLibrary,
|
||||
ArrowUpToLine, ArrowDownToLine
|
||||
ArrowUpToLine, ArrowDownToLine, FileDown
|
||||
} from '@lucide/svelte';
|
||||
import { ae_loc, ae_api } from '$lib/stores/ae_stores';
|
||||
import { journals_slct, journals_loc, journals_sess } from '$lib/ae_journals/ae_journals_stores';
|
||||
@@ -29,6 +29,7 @@
|
||||
onChangeJournal: () => void;
|
||||
onAppend?: () => void;
|
||||
onPrepend?: () => void;
|
||||
onShowExport?: () => void;
|
||||
log_lvl?: number;
|
||||
}
|
||||
|
||||
@@ -42,6 +43,7 @@
|
||||
onChangeJournal,
|
||||
onAppend,
|
||||
onPrepend,
|
||||
onShowExport,
|
||||
log_lvl = 0
|
||||
}: Props = $props();
|
||||
|
||||
@@ -98,6 +100,22 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Export Action -->
|
||||
<button
|
||||
class="btn btn-sm variant-soft-secondary w-full"
|
||||
onclick={() => {
|
||||
console.log('JournalEntry_SettingsMenu: Export Entry clicked');
|
||||
if (onShowExport) {
|
||||
onShowExport();
|
||||
} else {
|
||||
console.warn('JournalEntry_SettingsMenu: onShowExport prop is undefined');
|
||||
}
|
||||
}}
|
||||
title="Export this Entry"
|
||||
>
|
||||
<FileDown size="1.2em" class="mr-2"/> Export Entry
|
||||
</button>
|
||||
|
||||
<!-- Category selection -->
|
||||
<div class="flex items-center gap-2">
|
||||
<Shapes size="1.1em" class="text-surface-500" />
|
||||
|
||||
Reference in New Issue
Block a user