Minor change

This commit is contained in:
Scott Idem
2024-10-08 14:10:43 -04:00
parent a6b9115865
commit f9b3b3a0eb

View File

@@ -1,7 +1,7 @@
<script lang="ts">
/** @type {import('./$types').LayoutData} */
export let data: any;
let log_lvl = 1;
let log_lvl = 0;
import { onMount, tick } from 'svelte';
import { goto } from '$app/navigation';
@@ -193,23 +193,24 @@ function handle_ws_recv(event) {
// console.log(new_url);
// goto(new_url, {replaceState: false});
ae_promises.slct_event_session_id = events_func.load_ae_obj_id__event_session({
api_cfg: $ae_api,
event_session_id: $events_slct.event_session_id,
inc_file_li: true,
inc_presentation_li: true,
try_cache: true,
log_lvl: log_lvl
})
.then(async (load_results) => {
// ae_promises.slct_event_session_id = events_func.load_ae_obj_id__event_session({
// api_cfg: $ae_api,
// event_session_id: $events_slct.event_session_id,
// inc_file_li: true,
// inc_presentation_li: true,
// try_cache: true,
// log_lvl: log_lvl
// })
// .then(async (load_results) => {
});
data.url.searchParams.set('session_id', $events_slct.event_session_id);
let new_url = data.url.toString();
console.log(new_url);
goto(new_url, {replaceState: false});
// });
console.log(`Current URL`, data.url);
// let new_url = new URL(data.url);
// new_url.pathname = `/events/${$events_slct.event_id}/launcher/${$events_slct.event_location_id}`;
// new_url.searchParams.set('session_id', $events_slct.event_session_id);
// let new_url = data.url.toString();
// console.log(`New URL: ${new_url}`);
// goto(new_url, {replaceState: false});
}
// AE Open (event file ID)