Clean up for CHOW...

This commit is contained in:
Scott Idem
2024-03-07 11:28:30 -05:00
parent b020ded01c
commit c6abc0abca
2 changed files with 86 additions and 35 deletions

View File

@@ -230,15 +230,16 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
$events_trigger = null;
load_obj_li_results = handle_load_ae_obj_li__badge({event_id: $events_slct.event_id, try_cache: false})
.then(function (load_obj_li_results) {
if (load_obj_li_results) {
console.log(`load_obj_li_results=`, load_obj_li_results);
.then(function (load_results) {
if (load_results) {
console.log(`load_results=`, load_results);
} else {
console.log('No results returned.');
}
// return load_obj_li_results;
console.log(`load_obj_li_results=`, load_obj_li_results);
$events_slct.badge_obj_li = load_obj_li_results;
// return load_results;
console.log(`load_results=`, load_results);
$events_slct.badge_obj_li = load_results;
return load_results;
});
}
@@ -341,12 +342,12 @@ async function handle_load_ae_obj_li__badge({event_id, try_cache=true}) {
</button>
{#await load_obj_li_results}
<div class="modal-loading">
<span class="modal-loading">
<span class="fas fa-spinner fa-spin"></span>
<span class="loading-text">
Loading...
</span>
</div>
</span>
{:then load_obj_li_results}
{#if load_obj_li_results}
<span class="fas fa-check text-green-500"></span>