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) -->
|
||||
|
||||
Reference in New Issue
Block a user