Bug fixes and small improvements. The session page menu is now separate. Still testing that out.
This commit is contained in:
@@ -25,6 +25,7 @@ import { events_loc, events_sess, events_slct, events_trigger, events_trig_kv }
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
import Session_view from './../../session_view.svelte';
|
||||
import Session_page_menu from './../../session_page_menu.svelte';
|
||||
import Sign_in_out from './../../sign_in_out.svelte';
|
||||
|
||||
import { browser } from '$app/environment';
|
||||
@@ -216,7 +217,14 @@ onMount(() => {
|
||||
class="ae_events_pres_mgmt_event_session md:container h-full mx-auto flex flex-col space-y-4 pt-0 pb-8"
|
||||
>
|
||||
|
||||
<Session_page_menu
|
||||
data={data}
|
||||
lq__event_session_obj={lq__event_session_obj}
|
||||
/>
|
||||
|
||||
|
||||
<!-- New standard page specific menu 2024-08-01 -->
|
||||
{#if 1==3}
|
||||
<div
|
||||
class="pres_mgmt__session_menu {ae_snip.classes__events_pres_mgmt_menu}"
|
||||
class:border-none={!$events_loc.pres_mgmt.show_menu__session}
|
||||
@@ -513,18 +521,29 @@ onMount(() => {
|
||||
</button>
|
||||
</div>
|
||||
</div> <!-- End of the new standard page specific menu -->
|
||||
|
||||
{#if !$lq__event_session_obj}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span>
|
||||
<span>Loading...</span>
|
||||
{:else}
|
||||
<!-- {$lq__event_session_obj?.name} -->
|
||||
{/if}
|
||||
|
||||
|
||||
{#if !$lq__event_session_obj}
|
||||
<div>
|
||||
<span class="fas fa-spinner fa-spin m-1"></span>
|
||||
<span>Loading session information...</span>
|
||||
</div>
|
||||
{:else if $lq__event_session_obj?.enable || $ae_loc.trusted_access}
|
||||
<Session_view
|
||||
event_session_id={$events_slct.event_session_id}
|
||||
/>
|
||||
|
||||
{:else}
|
||||
<div class="bg-red-100 p-4 border border-red-200 rounded-md">
|
||||
<h2 class="h3">
|
||||
<span class="fas fa-exclamation-triangle text-red-500 m-1"></span>
|
||||
Session Disabled
|
||||
</h2>
|
||||
<p>
|
||||
This session is currently disabled. Please contact the event organizer for more information.
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user