More work on making the locations and devices more useful.
This commit is contained in:
@@ -5,8 +5,9 @@ import { error } from '@sveltejs/kit';
|
||||
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 log_lvl = 1;
|
||||
|
||||
let data = await parent();
|
||||
// console.log(`ae events_pres_mgmt event [event_id] +page.ts data:`, data);
|
||||
@@ -41,7 +42,11 @@ export async function load({ params, parent }) { // route
|
||||
|
||||
if (browser) {
|
||||
let load_event_obj = events_func.load_ae_obj_id__event({
|
||||
api_cfg: ae_acct.api, event_id: event_id, try_cache: true
|
||||
api_cfg: ae_acct.api,
|
||||
event_id: event_id,
|
||||
inc_device_li: true,
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
console.log(`load_event_obj = `, load_event_obj);
|
||||
ae_acct.slct.event_obj = load_event_obj;
|
||||
@@ -52,7 +57,7 @@ export async function load({ params, parent }) { // route
|
||||
for_obj_id: event_id,
|
||||
params: {qry__enabled: 'enabled', qry__hidden: 'all', qry__limit: 200},
|
||||
try_cache: true,
|
||||
log_lvl: 1
|
||||
log_lvl: 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;
|
||||
@@ -63,7 +68,7 @@ export async function load({ params, parent }) { // route
|
||||
for_obj_id: event_id,
|
||||
params: {qry__enabled: 'enabled', qry__hidden: 'all', qry__limit: 200},
|
||||
try_cache: true,
|
||||
log_lvl: 1
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
console.log(`load_event_location_obj_li = `, load_event_location_obj_li);
|
||||
ae_acct.slct.event_location_obj_li = load_event_location_obj_li;
|
||||
|
||||
Reference in New Issue
Block a user