Making things work and look a little nicer. Missing business logic and functions.
This commit is contained in:
@@ -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) -->
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user