From d242948d7efd16fa5720540a84edb637cea9da9c Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 11 Apr 2024 11:17:59 -0400 Subject: [PATCH] Show or hide alert. Enable or disable the default to scan --- src/lib/ae_events_stores.ts | 3 +++ .../exhibit/[slug]/leads_add_scan.svelte | 25 ++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/lib/ae_events_stores.ts b/src/lib/ae_events_stores.ts index 0329beee..1cbd1ec3 100644 --- a/src/lib/ae_events_stores.ts +++ b/src/lib/ae_events_stores.ts @@ -53,9 +53,12 @@ let events_local_data_struct: key_val = { // Lead Retrievals (Exhibit) 'leads': { show_option__paid_tab: true, + show_content__scan_alert: true, // For QR scanner bug... show_content__scan_requirements: true, show_content__custom_question_descriptions: true, show_content__email_link_warning: true, + + default_to_scan: true, // For ISHLT 2024 Annual Meeting only! default__external_registration_id: '2024_Annual Meeting', diff --git a/src/routes/events_leads/exhibit/[slug]/leads_add_scan.svelte b/src/routes/events_leads/exhibit/[slug]/leads_add_scan.svelte index 85673a23..7462b6a6 100644 --- a/src/routes/events_leads/exhibit/[slug]/leads_add_scan.svelte +++ b/src/routes/events_leads/exhibit/[slug]/leads_add_scan.svelte @@ -14,10 +14,13 @@ import Element_qr_scanner_v2 from '$lib/element_qr_scanner_v2.svelte'; import Element_qr_scanner_dev from '$lib/element_qr_scanner_dev.svelte'; -// TEMPORARY: For testing and development -// $events_sess.leads.show_form__search = true; -// $events_sess.leads.show_form__scan = true; -// TEMPORARY: For testing and development +// TEMPORARY: For testing and development??? +if ($events_loc.leads.default_to_scan ?? false) { + // $events_sess.leads.show_form__search = true; + $events_sess.leads.show_form__scan = true; + $events_sess.leads.qr_scan_start = true; +} +// TEMPORARY: For testing and development??? $: event_exhibit_obj = liveQuery( @@ -249,14 +252,23 @@ function handle_qr_camera(event) { +{#if ($events_loc.leads.show_content__scan_alert)} + +{:else if (!$events_loc.leads.show_content__scan_alert)} + +{/if} {#if ($events_loc.leads.show_content__scan_requirements)} {:else if (!$events_loc.leads.show_content__scan_requirements)} {/if} + + -{#if $events_loc.leads.show_content__scan_requirements} +{#if $events_loc.leads.show_content__scan_alert}
@@ -276,7 +288,8 @@ function handle_qr_camera(event) {

A fix is in progress to address all devices. -2024-04-10 2:25 AM (Prague time)

- +{/if} +{#if $events_loc.leads.show_content__scan_requirements}

You will need a device with a camera to scan the QR codes. You will also of course need one or more valid QR codes to scan.