Finally working on the Launcher piece again. Getting it updated to match the standards for everything else.
This commit is contained in:
@@ -1,32 +1,44 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
data_url: any;
|
||||
|
||||
lq__event_obj: any;
|
||||
|
||||
lq__event_event_file_obj_li: any;
|
||||
lq__location_event_file_obj_li: any;
|
||||
// lq__event_location_obj: any;
|
||||
// export let lq__event_location_obj_li: any;
|
||||
slct__event_file_id?: string|null;
|
||||
|
||||
lq__event_location_obj_li: any;
|
||||
// lq__event_session_obj: any;
|
||||
// export let lq__event_session_obj_li: any;
|
||||
lq__event_location_obj?: any;
|
||||
slct__event_location_id?: string|null;
|
||||
|
||||
lq__event_session_obj_li: any;
|
||||
lq__event_session_obj?: any;
|
||||
slct__event_session_id?: string|null;
|
||||
log_lvl?: number;
|
||||
}
|
||||
|
||||
let {
|
||||
data_url,
|
||||
|
||||
lq__event_obj,
|
||||
|
||||
lq__event_event_file_obj_li,
|
||||
lq__location_event_file_obj_li,
|
||||
// lq__event_location_obj,
|
||||
slct__event_file_id = $bindable(null),
|
||||
|
||||
lq__event_location_obj_li,
|
||||
// lq__event_session_obj,
|
||||
lq__event_location_obj,
|
||||
slct__event_location_id = $bindable(null),
|
||||
|
||||
lq__event_session_obj_li,
|
||||
lq__event_session_obj,
|
||||
slct__event_session_id = $bindable(null),
|
||||
log_lvl = $bindable(0),
|
||||
}: Props = $props();
|
||||
|
||||
// *** Import Svelte specific
|
||||
import { goto } from '$app/navigation';
|
||||
// import { goto } from '$app/navigation';
|
||||
|
||||
// *** Import other supporting libraries
|
||||
// import { liveQuery } from "dexie";
|
||||
@@ -45,10 +57,11 @@ import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$
|
||||
import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
import Menu_location_list_menu from './menu_location_list.svelte';
|
||||
import Menu_session_list_menu from './menu_session_list.svelte';
|
||||
|
||||
|
||||
let slct_event_location_id: string = $state($events_slct.event_location_id);
|
||||
// let slct_event_location_id: string = $state($events_slct.event_location_id);
|
||||
|
||||
|
||||
// *** Functions and Logic
|
||||
@@ -129,7 +142,14 @@ let ae_promises: key_val = $state({
|
||||
|
||||
|
||||
{#if $ae_loc.edit_mode}
|
||||
<div
|
||||
<Menu_location_list_menu
|
||||
data_url={data_url}
|
||||
lq__event_location_obj_li={lq__event_location_obj_li}
|
||||
slct_event_location_id={$events_slct.event_location_id}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
<!-- <div
|
||||
class="
|
||||
w-full max-w-full
|
||||
flex flex-row gap-1 items-center justify-center
|
||||
@@ -141,7 +161,6 @@ let ae_promises: key_val = $state({
|
||||
{#if $ae_loc.administrator_access}
|
||||
({$lq__event_location_obj_li?.length}×)
|
||||
{/if}
|
||||
<!-- This should fade out once the data is loaded. -->
|
||||
{#await ae_promises[slct_event_location_id]}
|
||||
<span class="fas fa-spinner fa-spin text-blue-500"></span>
|
||||
{:then result}
|
||||
@@ -234,7 +253,7 @@ let ae_promises: key_val = $state({
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/if} -->
|
||||
|
||||
|
||||
|
||||
@@ -277,6 +296,7 @@ let ae_promises: key_val = $state({
|
||||
<Menu_session_list_menu
|
||||
data_url={data_url}
|
||||
lq__event_session_obj_li={lq__event_session_obj_li}
|
||||
slct_event_session_id={$events_slct.event_session_id}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user