Fixes for saving custom leads questions and adding by badge ID
This commit is contained in:
@@ -242,7 +242,7 @@ function handle_qr_scan_error(qr_error_message, qr_code_error) {
|
||||
}
|
||||
|
||||
|
||||
$: if ( qr_entered_badge_id && qr_entered_badge_id.length == 11 ) {
|
||||
$: if ( qr_entered_badge_id && qr_entered_badge_id.length >= 11 && qr_entered_badge_id && qr_entered_badge_id.length <= 14) {
|
||||
disable_submit_badge_id_btn = false;
|
||||
} else {
|
||||
disable_submit_badge_id_btn = true;
|
||||
|
||||
@@ -88,7 +88,7 @@ $: event_exhibit_tracking_obj_li = liveQuery(
|
||||
Leads for {$event_exhibit_obj?.name}
|
||||
</h2>
|
||||
|
||||
<div class="border border-slate-500/10 p-2 variant-soft-warning">This section is not currently enabled.</div>
|
||||
<div class="border border-slate-500/10 p-2 variant-soft-warning">This section is not fully enabled for ISHLT 2024 at this time. You can not add new leads and changes are limited.</div>
|
||||
|
||||
|
||||
{#if $ae_loc.trusted_access}
|
||||
|
||||
@@ -59,7 +59,7 @@ async function handle_submit_form_lead_update(event) {
|
||||
exhibit_lead_do.external_person_id = exhibit_lead_di.external_person_id;
|
||||
}
|
||||
|
||||
let temp_questions = $events_slct.exhibit_tracking_obj.responses_json;
|
||||
let temp_questions = $events_slct.exhibit_tracking_obj.responses_json ?? {};
|
||||
|
||||
for (const [key, value] of Object.entries(exhibit_lead_di)) {
|
||||
console.log(`${key}: ${value}`);
|
||||
@@ -571,10 +571,11 @@ async function handle_submit_form_lead_update(event) {
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
>
|
||||
{@html ($event_exhibit_tracking_obj?.hide ? '<span class="fas fa-eye m-1"></span> Unhide' : '<span class="fas fa-eye-slash m-1"></span> Hide')}
|
||||
{@html ($event_exhibit_tracking_obj?.hide ? '<span class="fas fa-eye m-1"></span> Unhide?' : '<span class="fas fa-eye-slash m-1"></span> Hide?')}
|
||||
</button>
|
||||
</Element_ae_crud>
|
||||
|
||||
{#if $ae_loc.administrator_access}
|
||||
<Element_ae_crud
|
||||
trigger_patch={ae_triggers.enable}
|
||||
api_cfg={$ae_api}
|
||||
@@ -605,6 +606,7 @@ async function handle_submit_form_lead_update(event) {
|
||||
{@html ($event_exhibit_tracking_obj?.enable ? '<span class="fas fa-toggle-on m-1"></span> Disable' : '<span class="fas fa-toggle-off m-1"></span> Enable')}
|
||||
</button>
|
||||
</Element_ae_crud>
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user