diff --git a/src/routes/idaa/(idaa)/archives/+layout.ts b/src/routes/idaa/(idaa)/archives/+layout.ts index 30622f87..b4696da7 100644 --- a/src/routes/idaa/(idaa)/archives/+layout.ts +++ b/src/routes/idaa/(idaa)/archives/+layout.ts @@ -1,5 +1,5 @@ /** @type {import('./$types').LayoutLoad} */ -console.log(`IDAA BB - [account_id] +layout.ts start`); +// console.log(`IDAA BB - [account_id] +layout.ts start`); // import { error } from '@sveltejs/kit'; import { browser } from '$app/environment'; diff --git a/src/routes/idaa/(idaa)/archives/+page.svelte b/src/routes/idaa/(idaa)/archives/+page.svelte index 5d348806..6cae3c52 100644 --- a/src/routes/idaa/(idaa)/archives/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/+page.svelte @@ -1,12 +1,19 @@ + + + + + IDAA Recovery Meetings: + {$lq__event_obj?.name ? ae_util.shorten_string({ string: $lq__event_obj?.name, max_length: 20, begin_length: 10, end_length: 4 }) : ''} + - Novi - {$ae_loc?.title} + + + + + + View Other Meetings + + + + \ No newline at end of file diff --git a/src/routes/idaa/(idaa)/recovery_meetings/[event_id]/+page.ts b/src/routes/idaa/(idaa)/recovery_meetings/[event_id]/+page.ts new file mode 100644 index 00000000..981428eb --- /dev/null +++ b/src/routes/idaa/(idaa)/recovery_meetings/[event_id]/+page.ts @@ -0,0 +1,41 @@ +import type { PageLoad } from './$types'; + +console.log(`ae_p_idaa_events [event_id] +page.ts start`); + +import { browser } from '$app/environment'; +import { events_func } from '$lib/ae_events_functions'; + +export const load = (async ({ params, parent }) => { // route + let log_lvl: number = 0; + + let data = await parent(); + data.log_lvl = log_lvl; + + let account_id = data.account_id; + let ae_acct = data[account_id]; + + let event_id = params.event_id; + + ae_acct.slct.event_id = event_id; + + if (browser) { + if (log_lvl) { + console.log(`ae_idaa_events events [event_id] +page.ts: event_id = `, event_id); + } + // Load event event object + let load_event_obj = await events_func.load_ae_obj_id__event({ + api_cfg: ae_acct.api, + event_id: event_id, + log_lvl: log_lvl + }); + if (log_lvl) { + console.log(`load_event_obj = `, load_event_obj); + } + ae_acct.slct.event_obj = load_event_obj; + } + + data[account_id] = ae_acct; + + return data; + // return {}; +}) satisfies PageLoad; \ No newline at end of file diff --git a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte index 1e31eb9f..89fa92fd 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte @@ -158,6 +158,15 @@ function add_activity_log(
+ + + + Info X +