Enhance: Journal config options and UI result messaging
- Added Query Limit configuration for Journals and Entries in modal settings. - Refactored +page.svelte to delegate empty-state handling to the entry list component. - Improved "no results" messaging in ae_comp__journal_entry_obj_li.svelte.
This commit is contained in:
@@ -385,13 +385,15 @@
|
||||
onShowImport={() => show_import_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} />
|
||||
|
||||
<!-- {#if $lq__journal_entry_obj_li && $lq__journal_entry_obj_li?.length}
|
||||
<Journal_entry_obj_li {lq__journal_obj} {lq__journal_entry_obj_li} />
|
||||
{:else}
|
||||
<section class="main_content grow px-1 md:px-2 pb-28 flex flex-col gap-1 items-center">
|
||||
<p>No Journal Entry available to show. Please check the query filters or create a new Entry.</p>
|
||||
</section>
|
||||
{/if}
|
||||
{/if} -->
|
||||
|
||||
<!-- </section> -->
|
||||
|
||||
|
||||
@@ -557,6 +557,6 @@
|
||||
/>
|
||||
{/if}
|
||||
{:else}
|
||||
<p>No Æ Journal Entry available to show.</p>
|
||||
<p>No Æ Journal Entry available to show. Please check the query filters or create a new Entry.</p>
|
||||
{/if}
|
||||
</section>
|
||||
@@ -167,7 +167,7 @@
|
||||
<Database size="1.2em" class="text-primary-500" />
|
||||
Journal Query Filters
|
||||
</h2>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 p-2">
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 p-2">
|
||||
<label class="label">
|
||||
<span class="text-sm font-bold opacity-70">Enabled Status</span>
|
||||
<select bind:value={tmp_config.journal.qry__enabled} class="select select-sm variant-form-material">
|
||||
@@ -184,6 +184,18 @@
|
||||
<option value="all">All (Visible & Hidden & NULL)</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="label">
|
||||
<span class="text-sm font-bold opacity-70">Query Limit</span>
|
||||
<select bind:value={tmp_config.journal.qry__limit} class="select select-sm variant-form-material">
|
||||
<option value={10}>10</option>
|
||||
<option value={20}>20</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={250}>250</option>
|
||||
<option value={500}>500</option>
|
||||
<option value={1000}>1000</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -193,7 +205,7 @@
|
||||
<Database size="1.2em" class="text-primary-500" />
|
||||
Entry Query Filters
|
||||
</h2>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 p-2">
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 p-2">
|
||||
<label class="label">
|
||||
<span class="text-sm font-bold opacity-70">Enabled Status</span>
|
||||
<select bind:value={tmp_config.entry.qry__enabled} class="select select-sm variant-form-material">
|
||||
@@ -210,6 +222,18 @@
|
||||
<option value="all">All (Visible & Hidden & NULL)</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="label">
|
||||
<span class="text-sm font-bold opacity-70">Query Limit</span>
|
||||
<select bind:value={tmp_config.entry.qry__limit} class="select select-sm variant-form-material">
|
||||
<option value={10}>10</option>
|
||||
<option value={20}>20</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={250}>250</option>
|
||||
<option value={500}>500</option>
|
||||
<option value={1000}>1000</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user