Making things work and look a little nicer. Missing business logic and functions.

This commit is contained in:
Scott Idem
2026-04-01 16:50:37 -04:00
parent 665eb48280
commit 828a2a0b10
2 changed files with 28 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ if (!$events_sess.pres_mgmt) $events_sess.pres_mgmt = {};
</div>
<!-- Presentation List Section -->
<div class="w-full">
<div class="w-full" class:hidden={!$lq__event_presentation_obj_li?.length}>
<!--
CRITICAL FIX: Use the pre-loaded data (data.initial_session_obj) as a fallback
until the `liveQuery` store ($lq...) emits its first value. This avoids
@@ -210,6 +210,31 @@ if (!$events_sess.pres_mgmt) $events_sess.pres_mgmt = {};
[]}
{log_lvl} />
</div>
<button
type="button"
onclick={() => {
$events_loc.pres_mgmt.show_content__session_view =
$events_loc.pres_mgmt.show_content__session_view === 'manage_files'
? null
: 'manage_files';
}}
class="btn btn-md"
class:preset-filled-secondary-500={$events_loc.pres_mgmt.show_content__session_view === 'manage_files'}
class:preset-filled-tertiary-500={$events_loc.pres_mgmt.show_content__session_view !== 'manage_files'}
class:hidden={$lq__event_presentation_obj_li?.length}
title="Toggle between session info and session file management">
<Archive size="1em" class="m-1" />
Session Files?
<span
class="badge preset-tonal-success"
class:hidden={!$lq__event_session_obj?.file_count}>
<FileText size="1em" class="m-1" />
{$lq__event_session_obj?.file_count}×
</span>
</button>
{/if}
<!-- Background Connection Status (Non-blocking) -->