diff --git a/src/lib/ae_events__event_presentation.ts b/src/lib/ae_events__event_presentation.ts index 5d425314..ec727a88 100644 --- a/src/lib/ae_events__event_presentation.ts +++ b/src/lib/ae_events__event_presentation.ts @@ -11,11 +11,15 @@ export async function load_ae_obj_id__event_presentation( { api_cfg, event_presentation_id, - try_cache=false, - log_lvl=0 + inc_file_li = false, + inc_presenter_li = false, + try_cache = true, + log_lvl = 0 }: { api_cfg: any, event_presentation_id: string, + inc_file_li?: boolean, + inc_presenter_li?: boolean try_cache?: boolean, log_lvl?: number } @@ -35,8 +39,14 @@ export async function load_ae_obj_id__event_presentation( }) .then(function (event_presentation_obj_get_result) { if (event_presentation_obj_get_result) { - // This is expecting a list - db_save_ae_obj_li__event_presentation({obj_type: 'event_presentation', obj_li: [event_presentation_obj_get_result]}); + if (try_cache) { + // This is expecting a list + db_save_ae_obj_li__event_presentation({ + obj_type: 'event_presentation', + obj_li: [event_presentation_obj_get_result] + + }); + } return event_presentation_obj_get_result; } else { console.log('No results returned.'); @@ -47,6 +57,20 @@ export async function load_ae_obj_id__event_presentation( console.log('No results returned or failed.', error); }); + if (inc_file_li) { + // Load the files for the presentation + if (log_lvl) { + console.log(`Need to load the file list for the presentation now.`); + } + } + + if (inc_presenter_li) { + // Load the presenters for the presentation + if (log_lvl) { + console.log(`Need to load the presenter list for the presentation now.`); + } + } + return ae_promises.load__event_presentation_obj; } @@ -55,19 +79,25 @@ export async function load_ae_obj_id__event_presentation( export async function load_ae_obj_li__event_presentation( { api_cfg, - event_session_id, - params={}, - try_cache=true, - log_lvl=0 + for_obj_type, + for_obj_id, + inc_file_li = false, + inc_presenter_li = false, + params = {}, + try_cache = true, + log_lvl = 0 }: { api_cfg: any, - event_session_id: string, + for_obj_type: string, + for_obj_id: string, + inc_file_li?: boolean, + inc_presenter_li?: boolean params?: key_val, try_cache?: boolean, log_lvl?: number } ) { - console.log(`*** load_ae_obj_li__event_presentation() *** event_session_id=${event_session_id}`); + console.log(`*** load_ae_obj_li__event_presentation() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`); let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden @@ -81,8 +111,8 @@ export async function load_ae_obj_li__event_presentation( ae_promises.load__event_presentation_obj_li = await api.get_ae_obj_li_for_obj_id_crud({ api_cfg: api_cfg, obj_type: 'event_presentation', - for_obj_type: 'event_session', - for_obj_id: event_session_id, + for_obj_type: for_obj_type, + for_obj_id: for_obj_id, use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config. use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value enabled: enabled, @@ -96,7 +126,11 @@ export async function load_ae_obj_li__event_presentation( }) .then(function (event_presentation_obj_li_get_result) { if (event_presentation_obj_li_get_result) { - db_save_ae_obj_li__event_presentation({obj_type: 'event_presentation', obj_li: event_presentation_obj_li_get_result}); + if (try_cache) { + db_save_ae_obj_li__event_presentation({ + obj_type: 'event_presentation', obj_li: event_presentation_obj_li_get_result + }); + } return event_presentation_obj_li_get_result; } else { return []; @@ -109,6 +143,21 @@ export async function load_ae_obj_li__event_presentation( if (log_lvl) { console.log('ae_promises.load__event_presentation_obj_li:', ae_promises.load__event_presentation_obj_li); } + + if (inc_file_li) { + // Load the files for the presentations + if (log_lvl) { + console.log(`Need to load the file list for each presentation now.`); + } + } + + if (inc_presenter_li) { + // Load the presenters for the presentations + if (log_lvl) { + console.log(`Need to load the presenter list for each presentation now.`); + } + } + return ae_promises.load__event_presentation_obj_li; } diff --git a/src/lib/ae_events__event_session.ts b/src/lib/ae_events__event_session.ts index c7bf6a02..6905bd22 100644 --- a/src/lib/ae_events__event_session.ts +++ b/src/lib/ae_events__event_session.ts @@ -136,15 +136,17 @@ export async function load_ae_obj_li__event_session( for_obj_id, inc_file_li = false, inc_presentation_li = false, - params={}, - try_cache=true, - log_lvl=0 + order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'start_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'}, + params = {}, + try_cache = true, + log_lvl = 0 }: { api_cfg: any, for_obj_type: string, for_obj_id: string, inc_file_li?: boolean, inc_presentation_li?: boolean, + order_by_li?: key_val, params?: key_val, try_cache?: boolean, log_lvl?: number @@ -170,7 +172,7 @@ export async function load_ae_obj_li__event_session( use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value enabled: enabled, hidden: hidden, - order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'start_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'}, + order_by_li: order_by_li, limit: limit, offset: offset, params_json: params_json, @@ -239,8 +241,11 @@ export async function load_ae_obj_li__event_session( let load_event_presentation_obj_li = load_ae_obj_li__event_presentation({ api_cfg: api_cfg, - event_session_id: event_session_id, - params: {enabled: 'all', qry__limit: 15}, + for_obj_type: 'event_session', + for_obj_id: event_session_id, + inc_file_li: false, // This will need to be changed. + inc_presenter_li: false, // This will need to be changed. + params: {qry__enabled: 'all', qry__limit: 15}, try_cache: try_cache, log_lvl: log_lvl }) diff --git a/src/lib/ae_events_stores.ts b/src/lib/ae_events_stores.ts index 0b934518..4994e4d7 100644 --- a/src/lib/ae_events_stores.ts +++ b/src/lib/ae_events_stores.ts @@ -192,13 +192,16 @@ let events_local_data_struct: key_val = { saved_search__session: null, // show_content__agree_text: false, + show_content__location_qr: false, show_content__presentation_description: false, show_content__presenter_page_help: true, // show_content__presenter_start: false, show_content__presenter_view: null, show_content__presenter_qr: false, show_content__session_description: false, + show_content__session_files: false, show_content__session_help: true, + show_content__session_presentations: false, show_content__session_search_view: null, show_content__session_search_help: true, show_content__session_view: null, diff --git a/src/lib/api_get__crud_obj_li_v1.ts b/src/lib/api_get__crud_obj_li_v1.ts index 050c3ccc..46d0108e 100644 --- a/src/lib/api_get__crud_obj_li_v1.ts +++ b/src/lib/api_get__crud_obj_li_v1.ts @@ -168,6 +168,9 @@ export async function get_ae_obj_li_for_obj_id_crud( // NOTE: The order_by_li variable is in the "headers" because if is a the URL GET params do not handle multiple values very well. Maybe base64 encore in the future or something? Reminder that GET requests should not have a body (no JSON). // NOTE: The order_by_li should be a key value pair of the property/DB field to sort and how to sort (ASC or DESC) if (order_by_li) { + if (log_lvl) { + console.log('Order By:', order_by_li); + } headers['order_by_li'] = order_by_li; } diff --git a/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li.svelte b/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li.svelte index a5f53f13..1d9c6a5d 100644 --- a/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li.svelte +++ b/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li.svelte @@ -22,7 +22,7 @@ export let lq__event_obj: any; export let container_class_li: string|Array = []; export let link_to_type: string; export let link_to_id: string; -export let event_session_id_random_li: Array = ['']; // 'VSBH-19-41-50' +export let event_session_id_random_li: Array = ['']; // [''] export let hide__session_location: boolean = false; export let hide__session_poc: boolean = false; // export let allow_basic: boolean = false; @@ -198,7 +198,7 @@ let lq_kv__event_session_obj_li = liveQuery( - + {#if session_obj?.start_datetime} {ae_util.iso_datetime_formatter(session_obj?.start_datetime,'time_us_short')} @@ -214,6 +214,7 @@ let lq_kv__event_session_obj_li = liveQuery( {/if} + @@ -232,6 +233,18 @@ let lq_kv__event_session_obj_li = liveQuery( {session_obj?.event_location_name ?? '-- not set --'} {/if} + {#if $ae_loc.manager_access} + + + + + {/if} + + @@ -273,12 +286,11 @@ let lq_kv__event_session_obj_li = liveQuery( class_li={'m-1'} on:ae_crud_updated={e => { console.log(`ae_crud_updated:`, e.detail); - - ({ - api_cfg: $ae_api, - event_session_id: $events_slct?.event_session_id, - log_lvl: 1 - }) + events_func.load_ae_obj_id__event_session({ + api_cfg: $ae_api, + event_session_id: $events_slct?.event_session_id, + log_lvl: 1 + }) .then(function (load_results) { ae_tmp[$events_slct.event_session_id].poc_person_id = null; ae_tmp[$events_slct.event_session_id].show__edit_poc_person = false; diff --git a/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li_v2.svelte b/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li_v2.svelte new file mode 100644 index 00000000..2243a1ac --- /dev/null +++ b/src/routes/events_pres_mgmt/ae_comp__event_session_obj_li_v2.svelte @@ -0,0 +1,428 @@ + + + +
+ + +{#if event_session_id_random_li?.length > 0 && event_session_id_random_li?.length == $lq__event_session_obj_li?.length} + + + + +
+

+ + Sessions: + + + {#if $lq__event_session_obj_li?.length} + + + {$lq__event_session_obj_li?.length ?? 'None'} + + {/if} +

+ + + + + + + + + + + + +{#each $lq__event_session_obj_li as session_obj} + + + + + + + + +{/each} + +
SessionDateStart/EndLocationPOC
+ + + + + {session_obj?.name} + + {#if session_obj?.file_count_all} + + + {session_obj?.file_count_all}x + + {:else} + + {/if} + + + {#if show__session_presentations && $ae_loc.manager_access} + + + {/if} + + + {#if show__session_files && $ae_loc.manager_access} + + {/if} + + + + + {ae_util.iso_datetime_formatter(session_obj?.start_datetime,'dddd')} + + + {ae_util.iso_datetime_formatter(session_obj?.start_datetime,'date_long_month_day')} + + + + + {#if session_obj?.start_datetime} + + {ae_util.iso_datetime_formatter(session_obj?.start_datetime,'time_us_short')} + + + – + + + {ae_util.iso_datetime_formatter(session_obj?.end_datetime,'time_us_short')} + + {:else} + {@html ae_snip.html__not_set} + {/if} + + + + {#if $ae_loc.manager_access || $ae_loc.trusted_access && $lq__event_obj?.mod_pres_mgmt_json?.show__launcher_link} + + + {@html session_obj?.event_location_name ? session_obj?.event_location_name : ae_snip.html__not_set} + + {:else} + + {session_obj?.event_location_name ?? '-- not set --'} + + {/if} + {#if $ae_loc.manager_access} + + + + + {/if} + + + {#if session_obj?.poc_person_full_name} + + + {session_obj?.poc_person_full_name} + + + {#if $ae_loc.trusted_access} + + + + {session_obj?.poc_person_primary_email} + + + {/if} + {:else} + {@html ae_snip.html__not_set} + {/if} + + {#if $ae_loc.trusted_access} + + {#if session_obj?.event_session_id_random == $events_slct.event_session_id && ae_tmp[$events_slct.event_session_id] && ae_tmp[$events_slct.event_session_id].show__edit_poc_person} + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_session({ + api_cfg: $ae_api, + event_session_id: $events_slct?.event_session_id, + log_lvl: 1 + }) + .then(function (load_results) { + ae_tmp[$events_slct.event_session_id].poc_person_id = null; + ae_tmp[$events_slct.event_session_id].show__edit_poc_person = false; + + $events_slct.event_session_id = null; + $events_slct.event_obj = null; + + // Careful with the trigger_patch. It will keep firing if not reset. + ae_triggers.update_person_poc = false; + + // Maybe reload page? + // window.location.reload(); + }); + }} + > + {#await $slct.person_obj_li} + + {:then person_obj_li} + {#if person_obj_li && person_obj_li.length > 0} + + + + {/if} + {/await} + + {/if} + + {#if ae_tmp[$events_slct.event_session_id] && ae_tmp[$events_slct.event_session_id].show__edit_poc_person} + + {:else} + + {/if} + + {/if} + + +
+
+ +{:else} +

+ + No results to show. Please use the search above to find your session. + +

+ + + + + + +{/if} + +
\ No newline at end of file diff --git a/src/routes/events_pres_mgmt/location/[slug]/+page.svelte b/src/routes/events_pres_mgmt/location/[slug]/+page.svelte new file mode 100644 index 00000000..5e5bac5c --- /dev/null +++ b/src/routes/events_pres_mgmt/location/[slug]/+page.svelte @@ -0,0 +1,340 @@ + + + + + + Location: {ae_util.shorten_string({string: $lq__event_location_obj?.name ?? 'Loading...', max_length: 12})} ({$lq__event_location_obj?.event_location_id ?? ''}) - Pres Mgmt - {$events_loc?.title} + + + + +
+ + + +{#if !$lq__event_location_obj} + +
+ + Loading location information... +
+ +{:else if $lq__event_location_obj?.enable || $ae_loc.trusted_access} + +

+ {@html $lq__event_location_obj?.name ?? ae_snip.html__not_set} +

+ +{#if !$events_loc.pres_mgmt.show_content__location_view || $events_loc.pres_mgmt.show_content__location_view == 'default'} + + + + + +
+ + {#if $lq__event_session_obj_li && $lq__event_session_obj_li?.length > 0 && event_session_id_random_li && event_session_id_random_li?.length > 0} + + + {:else if $lq__event_session_obj_li && $lq__event_session_obj_li?.length == 0} +
+

+ + No Sessions Found +

+

+ There are no sessions found for this location. +

+
+ {:else if event_session_id_random_li?.length > 0} +
+ + Loading session list... +
+ {/if} + +
+ +{:else if $events_loc.pres_mgmt.show_content__location_view == 'manage_files' && $ae_loc.trusted_access} +
+

+ + Manage and Upload Location Files: +

+ + + +
+ +
+
+{/if} + +{:else} + +
+

+ + Location Disabled +

+

+ This location is currently disabled. Please contact the event organizer for more information. +

+
+ +{/if} + +
+ + +{#if $events_sess.pres_mgmt?.show_form__sign_in} +
+
+ +
+ + + + + + +
+ + + + + + +
+ + + + + +
+ +
+
+{/if} + + + + diff --git a/src/routes/events_pres_mgmt/location/[slug]/+page.ts b/src/routes/events_pres_mgmt/location/[slug]/+page.ts new file mode 100644 index 00000000..8a60d6a2 --- /dev/null +++ b/src/routes/events_pres_mgmt/location/[slug]/+page.ts @@ -0,0 +1,111 @@ +/** @type {import('./$types').PageLoad} */ +import { error } from '@sveltejs/kit'; +console.log(`ae_events_pres_mgmt_event [slug] +page.ts start`); + +import { browser } from '$app/environment'; +import { events_func } from '$lib/ae_events_functions'; + +export async function load({ params, parent }) { // route + let log_lvl = 0; + + let data = await parent(); + // console.log(`ae events_pres_mgmt location [slug] +page.ts data:`, data); + + let account_id = data.account_id; + let ae_acct = data[account_id]; + // console.log(`ae_acct = `, ae_acct); + + // if (!account_id) { + // console.log(`ae events_pres_mgmt location [slug] +page.ts: The account_id was not found in the data!!!`); + // return false; + // } + + data.ae_events_pres_mgmt_event_slug_page_ts = true; + + let event_location_id = params.slug; + if (!event_location_id) { + console.log(`ae events_pres_mgmt location [slug] +page.ts: The event_location_id was not found in the params!!!`); + error(404, { + message: 'Location not found' + }); + } + ae_acct.slct.event_location_id = event_location_id; + + if (browser) { + // Load event location object + let load_event_location_obj = events_func.load_ae_obj_id__event_location({ + api_cfg: ae_acct.api, + event_location_id: event_location_id, + try_cache: true + }); + + ae_acct.slct.event_location_obj = load_event_location_obj; + + // Load event sessions for the location + let load_event_session_obj_li = events_func.load_ae_obj_li__event_session({ + api_cfg: ae_acct.api, + for_obj_type: 'event_location', + for_obj_id: event_location_id, + params: {qry__enabled: 'all', qry__limit: 50}, + try_cache: true, + log_lvl: 1 + }) + .then((event_session_obj_li) => { + if (log_lvl) { + console.log(`event_session_obj_li = `, event_session_obj_li); + } + for (let index = 0; index < event_session_obj_li.length; index++) { + let event_session_obj = event_session_obj_li[index]; + let event_session_id = event_session_obj.event_session_id_random; + + let load_event_presentation_obj_li = events_func.load_ae_obj_li__event_presentation({ + api_cfg: ae_acct.api, + for_obj_type: 'event_session', + for_obj_id: event_session_id, + params: {qry__enabled: 'all', qry__limit: 15}, + try_cache: true + }); + if (log_lvl) { + console.log(`load_event_presentation_obj_li = `, load_event_presentation_obj_li); + } + event_session_obj_li[index].event_presentation_li = load_event_presentation_obj_li; + } + + return event_session_obj_li; + }); + if (log_lvl) { + console.log(`load_event_session_obj_li = `, load_event_session_obj_li); + } + ae_acct.slct.event_session_obj_li = load_event_session_obj_li; + + // Load event files for the location + let ae_params = { + qry__enabled: 'all', + qry__hidden: 'all', + qry__limit: 50 + } + + let load_event_file_obj_li = await events_func.handle_load_ae_obj_li__event_file({ + api_cfg: ae_acct.api, + for_obj_type: 'event_location', + for_obj_id: event_location_id, + params: ae_params, + try_cache: true + }) + .then((event_file_obj_li) => { + if (log_lvl) { + console.log(`event_file_obj_li = `, event_file_obj_li); + } + return event_file_obj_li; + }); + if (log_lvl) { + console.log(`load_event_file_obj_li = `, load_event_file_obj_li); + } + ae_acct.slct.event_file_obj_li = load_event_file_obj_li; + } + + // WARNING: Precaution against shared data between sites and sessions. + data[account_id] = ae_acct; + + return data; +} diff --git a/src/routes/events_pres_mgmt/location_page_menu.svelte b/src/routes/events_pres_mgmt/location_page_menu.svelte new file mode 100644 index 00000000..18d1d16f --- /dev/null +++ b/src/routes/events_pres_mgmt/location_page_menu.svelte @@ -0,0 +1,440 @@ + + + + +
+ + +
+ + + + + Back to Session Search + + + + + + + + + + + + + + + +
+ + + +
+ + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: log_lvl + }); + }} + > + + + + + + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: log_lvl + }); + }} + > + + + + + + + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: log_lvl + }) + .then(function (load_results) { + // Maybe reload page? + // window.location.reload(); + }); + }} + > + + + + + + + + + + + + {#if $ae_loc.administrator_access} + + + {#if $events_loc.pres_mgmt.show_content__session_files} + + {:else} + + {/if} + + {#if $events_loc.pres_mgmt.show_content__session_presentations} + + {:else} + + {/if} + {/if} + + {#if $ae_loc.trusted_access} + {#if $ae_loc.edit_mode} + + {:else} + + {/if} + {/if} + +
+ + + + +
+ +
+
diff --git a/src/routes/events_pres_mgmt/location_view.svelte b/src/routes/events_pres_mgmt/location_view.svelte new file mode 100644 index 00000000..ba1d4744 --- /dev/null +++ b/src/routes/events_pres_mgmt/location_view.svelte @@ -0,0 +1,532 @@ + + + +{#if $lq__event_location_obj} + +
+ + + + + +
    +
  • + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: 1 + }) + .then(function (load_results) { + }); + }} + > + External ID: {$lq__event_location_obj.external_id} + +
  • + +
  • + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: 1 + }) + .then(function (load_results) { + }); + }} + > + Code: {$lq__event_location_obj.code} + +
  • + +
  • + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: 1 + }) + .then(function (load_results) { + }); + }} + > + Name/Title: {$lq__event_location_obj.name} + + + {#if !$lq__event_obj?.mod_pres_mgmt_json?.hide__location_code && $events_loc.pres_mgmt.show_content__location_code} + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: 1 + }) + .then(function (load_results) { + }); + }} + > + + code: + + {$lq__event_location_obj.code} + + + {/if} +
  • + + {#if $ae_loc.administrator_access} +
  • + Location passcode: + + {@html $lq__event_location_obj.passcode ? $lq__event_location_obj.passcode : ae_snip.html__not_set} + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: 1 + }) + .then(function (load_results) { + }); + }} + > + +
  • + {/if} + +
  • +
    + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_location({ + api_cfg: $ae_api, + event_location_id: $lq__event_location_obj?.event_location_id_random, + log_lvl: 1 + }); + }} + > + + Location description: + + + {#if $lq__event_location_obj.description} + + +
    {$lq__event_location_obj.description}
    + + {:else} + {@html ae_snip.html__not_set} + {/if} +
    +
    +
  • + +
+ + + +
+{#if $ae_loc.trusted_access } + + + + +{:else} + + Not authorized + +{/if} + + + +
+ +
+ + + +
+ + + {#if $lq__event_session_obj_li && $lq__event_session_obj_li?.length > 0} + + + {/if} + + +
+ +{/if} + + + +{#if $events_sess.pres_mgmt?.show_content__agree_text} +
+
+ +
+ + + + + + +
+ + + +
+ + + + + +
+ +
+
+{/if} + + + diff --git a/src/routes/events_pres_mgmt/session/[slug]/+page.ts b/src/routes/events_pres_mgmt/session/[slug]/+page.ts index 2de50f8d..59a9cd49 100644 --- a/src/routes/events_pres_mgmt/session/[slug]/+page.ts +++ b/src/routes/events_pres_mgmt/session/[slug]/+page.ts @@ -45,7 +45,7 @@ export async function load({ params, parent }) { // route let load_event_presentation_obj_li = events_func.load_ae_obj_li__event_presentation({ api_cfg: ae_acct.api, event_session_id: event_session_id, - params: {enabled: 'all', qry__limit: 50}, + params: {qry__enabled: 'all', qry__limit: 50}, try_cache: true }) .then((event_presentation_obj_li) => { diff --git a/src/routes/events_pres_mgmt/session_view.svelte b/src/routes/events_pres_mgmt/session_view.svelte index c3d6ea31..bafd627a 100644 --- a/src/routes/events_pres_mgmt/session_view.svelte +++ b/src/routes/events_pres_mgmt/session_view.svelte @@ -624,7 +624,36 @@ $: if ($lq__event_session_obj) { {#if $ae_loc.administrator_access}
  • - Session passcode: {@html $lq__event_session_obj.passcode ? $lq__event_session_obj.passcode : ae_snip.html__not_set} + Session passcode: + + {@html $lq__event_session_obj.passcode ? $lq__event_session_obj.passcode : ae_snip.html__not_set} + { + console.log(`ae_crud_updated:`, e.detail); + + events_func.load_ae_obj_id__event_session({ + api_cfg: $ae_api, + event_session_id: $lq__event_session_obj?.event_session_id_random, + log_lvl: 1 + }) + .then(function (load_results) { + }); + }} + > +
  • {/if}