Creating version to of the data store element. Hopefully better now.

This commit is contained in:
Scott Idem
2024-09-16 18:10:55 -04:00
parent 9fd84183d7
commit 1e3086560d
11 changed files with 833 additions and 119 deletions

View File

@@ -31,23 +31,6 @@ $events_slct.event_obj = ae_acct.slct.event_obj;
let ae_promises: key_val = {};
// if (ae_acct.loc.site_cfg_json.slct__event_id) {
// $events_slct.event_id = ae_acct.loc.site_cfg_json.slct__event_id;
// $events_loc.event_id = ae_acct.loc.site_cfg_json.slct__event_id;
// } else if ($events_loc.default__event_id) {
// $events_slct.event_id = $events_loc.default__event_id;
// $events_loc.event_id = $events_loc.default__event_id;
// } else if ($events_slct.event_id) {
// console.log(`Event ID already set:`, $events_slct.event_id);
// $events_loc.event_id = $events_slct.event_id;
// } else {
// console.log(`No Event ID set.`);
// }
// if ($events_slct.event_id) {
// $events_trigger = 'load__event_obj';
// }
// Updated 2024-03-06
// $: if ($events_trigger == 'load__event_obj' && $events_slct.event_id) {

View File

@@ -333,7 +333,7 @@ function handle_qr_camera(event) {
<!-- {#if $ae_loc.ds.hub__page__events_badges__create_info_header} -->
{#if $ae_loc.iframe}
<span class="flex flex-row items-center justify-center">
<img src={$ae_loc.site_cfg_json.header_image_path} alt="header" class="w-auto max-h-20 m-2" />
<img src={$ae_loc.site_cfg_json?.header_image_path} alt="header" class="w-auto max-h-20 m-2" />
<h1 class="h3 text-center m-2">Review &amp; Print<br>Your Badge</h1>
</span>
{:else}

View File

@@ -340,7 +340,7 @@ function handle_qr_camera(event) {
<!-- {#if $ae_loc.ds.hub__page__events_badges__create_info_header} -->
{#if $ae_loc.iframe}
<span class="flex flex-row items-center justify-center">
<img src={$ae_loc.site_cfg_json.header_image_path} alt="header" class="w-auto max-h-20 m-2" />
<img src={$ae_loc.site_cfg_json?.header_image_path} alt="header" class="w-auto max-h-20 m-2" />
<h1 class="h3 text-center m-2">Review &amp; Print<br>Your Badge</h1>
</span>
{:else}