|
|
|
|
@@ -19,6 +19,7 @@ import { onMount } from 'svelte';
|
|
|
|
|
import type { key_val } from '$lib/ae_stores';
|
|
|
|
|
import { ae_util } from '$lib/ae_utils';
|
|
|
|
|
import { api } from '$lib/api';
|
|
|
|
|
import { events_func } from '$lib/ae_events_functions';
|
|
|
|
|
import { liveQuery } from "dexie";
|
|
|
|
|
import { db_events } from "$lib/db_events";
|
|
|
|
|
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
|
|
|
|
@@ -232,7 +233,7 @@ async function handle_load_ae_obj_id__event_badge({event_badge_id, try_cache=fal
|
|
|
|
|
|
|
|
|
|
// Updated 2024-03-06 late
|
|
|
|
|
$: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
|
|
|
|
console.log(`$events_slct.event_id=${$events_slct.event_id}`);
|
|
|
|
|
console.log(`handle_load_ae_obj_id__event() $events_slct.event_id=${$events_slct.event_id} api_cfg=`, $ae_api);
|
|
|
|
|
|
|
|
|
|
if ($events_sess.status_qry__search == 'loading') {
|
|
|
|
|
console.log('*** $events_sess.status_qry__search == loading ***');
|
|
|
|
|
@@ -241,7 +242,7 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
|
|
|
|
console.log("Delayed for X second.");
|
|
|
|
|
$events_trigger = null;
|
|
|
|
|
|
|
|
|
|
load_obj_li_results = handle_load_ae_obj_li__badge({event_id: $events_slct.event_id, try_cache: false})
|
|
|
|
|
load_obj_li_results = events_func.handle_load_ae_obj_li__badge({api_cfg: $ae_api, event_id: $events_slct.event_id, try_cache: false})
|
|
|
|
|
.then(function (load_results) {
|
|
|
|
|
if (load_results) {
|
|
|
|
|
console.log(`load_results=`, load_results);
|
|
|
|
|
@@ -258,7 +259,7 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
|
|
|
|
console.log('*** $events_sess.status_qry__search != loading ***');
|
|
|
|
|
$events_trigger = null;
|
|
|
|
|
|
|
|
|
|
load_obj_li_results = handle_load_ae_obj_li__badge({event_id: $events_slct.event_id, try_cache: false})
|
|
|
|
|
load_obj_li_results = events_func.handle_load_ae_obj_li__badge({api_cfg: $ae_api, event_id: $events_slct.event_id, try_cache: false})
|
|
|
|
|
.then(function (load_results) {
|
|
|
|
|
if (load_results) {
|
|
|
|
|
console.log(`load_results=`, load_results);
|
|
|
|
|
@@ -274,7 +275,7 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Updated 2024-03-06
|
|
|
|
|
async function handle_load_ae_obj_li__badge({event_id, try_cache=true}) {
|
|
|
|
|
async function handle_load_ae_obj_li__badge({api_cfg: ae_api, event_id, try_cache=true}) {
|
|
|
|
|
console.log(`*** handle_load_ae_obj_li__badge() *** event_id=${event_id}`);
|
|
|
|
|
|
|
|
|
|
let fulltext_search_qry_str = $events_sess.badges.fulltext_search_qry_str;
|
|
|
|
|
|