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) -->

View File

@@ -31,6 +31,7 @@ let {
import { ae_util } from '$lib/ae_utils/ae_utils';
import {
Barcode,
Bell,
BellOff,
CalendarDays,
@@ -166,6 +167,7 @@ function toggle_details(id: string) {
<div class="flex flex-col items-end gap-0.5">
{#if !$events_loc.pres_mgmt.hide__session_code && session_obj?.code}
<span class="border-surface-300-700 text-surface-700-300 bg-surface-200-800 rounded border px-1.5 py-0.5 font-mono text-xs select-all hover:bg-surface-100-900">
<Barcode size="1em" class="text-surface-600-400" />
{session_obj.code}
</span>
{/if}