A quick save while the new exports are fully working. The prepend and append also work now.
This commit is contained in:
@@ -329,16 +329,7 @@
|
||||
"
|
||||
> -->
|
||||
|
||||
<Journal_view {lq__journal_obj} {lq__journal_entry_obj_li} />
|
||||
|
||||
<!-- Export Toolbar -->
|
||||
{#if $lq__journal_entry_obj_li && $lq__journal_entry_obj_li.length > 0}
|
||||
<div class="flex justify-end w-full max-w-(--breakpoint-lg) px-2 pb-2">
|
||||
<button class="btn btn-sm variant-soft-secondary hover:variant-filled-secondary" onclick={() => show_export_modal = true}>
|
||||
<FileDown class="mr-2" size="1em" /> Export Entries
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
<Journal_view {lq__journal_obj} {lq__journal_entry_obj_li} onShowExport={() => show_export_modal = true} />
|
||||
|
||||
{#if $lq__journal_entry_obj_li && $lq__journal_entry_obj_li?.length}
|
||||
<Journal_entry_obj_li {lq__journal_obj} {lq__journal_entry_obj_li} />
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
import Journal_entry_view from './../../../ae_comp__journal_entry_obj_id_view.svelte';
|
||||
// import Journal_page_menu from './session_page_menu.svelte';
|
||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
||||
import AeCompModalJournalExport from '../../../ae_comp__modal_journal_export.svelte';
|
||||
|
||||
interface Props {
|
||||
data: any;
|
||||
@@ -50,6 +51,8 @@
|
||||
// Variables
|
||||
// *** Quickly pull out data from parent(s)
|
||||
let ae_acct = data[$slct.account_id];
|
||||
let show_export_modal = $state(false);
|
||||
|
||||
$effect(() => {
|
||||
if (log_lvl) {
|
||||
console.log(`ae_acct = `, ae_acct);
|
||||
@@ -315,9 +318,15 @@
|
||||
"
|
||||
>
|
||||
<!-- {#if $lq__journal_entry_obj} -->
|
||||
<Journal_entry_view {lq__journal_obj} {lq__journal_obj_li} {lq__journal_entry_obj} />
|
||||
<Journal_entry_view {lq__journal_obj} {lq__journal_obj_li} {lq__journal_entry_obj} onShowExport={() => show_export_modal = true} />
|
||||
<!-- {/if} -->
|
||||
</section>
|
||||
|
||||
<AeCompModalJournalExport
|
||||
bind:open={show_export_modal}
|
||||
entries={$lq__journal_entry_obj ? [$lq__journal_entry_obj] : []}
|
||||
onClose={() => show_export_modal = false}
|
||||
/>
|
||||
{:else}
|
||||
<section class="main_content grow px-1 md:px-2 pb-28 flex flex-col gap-1 items-center">
|
||||
<p class="text-center">You must be logged in as the owner to view this Journal Entry.</p>
|
||||
|
||||
Reference in New Issue
Block a user