Unknown changes from last week in Prague?
This commit is contained in:
@@ -259,7 +259,7 @@ function handle_qr_camera(event) {
|
||||
{/if}
|
||||
|
||||
<button class="btn btn-sm variant-soft-warning" on:click={() => {
|
||||
if ($events_loc.leads.default_to_scan) {
|
||||
if (!$events_loc.leads.default_to_scan) {
|
||||
if (!confirm('Are you sure you want to enable the default scan option?')) {
|
||||
return false;
|
||||
}
|
||||
@@ -270,6 +270,18 @@ function handle_qr_camera(event) {
|
||||
{@html ($events_loc.leads.default_to_scan ? '<span class="fas fa-toggle-on m-1"></span> Disable Default Scan?' : '<span class="fas fa-toggle-off m-1"></span> Enable Default Scan?')}
|
||||
</button>
|
||||
|
||||
<button class="btn btn-sm variant-soft-warning" on:click={() => {
|
||||
if (!$events_loc.leads.auto_view) {
|
||||
if (!confirm('Are you sure you want to enable the auto view new leads option?')) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$events_loc.leads.auto_view=!$events_loc.leads.auto_view;
|
||||
}}
|
||||
>
|
||||
{@html ($events_loc.leads.auto_view ? '<span class="fas fa-toggle-on m-1"></span> Disable Auto View?' : '<span class="fas fa-toggle-off m-1"></span> Enable Auto View?')}
|
||||
</button>
|
||||
|
||||
{#if ($events_loc.leads.show_content__scan_requirements)}
|
||||
<button class="btn btn-sm variant-soft-secondary" on:click={() => $events_loc.leads.show_content__scan_requirements=false}><span class="fas fa-info mx-1"></span> Hide Requirements?</button>
|
||||
{:else if (!$events_loc.leads.show_content__scan_requirements)}
|
||||
@@ -407,7 +419,6 @@ function handle_qr_camera(event) {
|
||||
|
||||
$events_sess.leads.show_confirm__add_lead[index] = true;
|
||||
}}
|
||||
disabled={!$ae_loc.trusted_access && 2==4}
|
||||
title="Add {event_badge_obj_v2.full_name} to the leads list?"
|
||||
class="btn btn-md variant-soft-primary mx-1"
|
||||
>
|
||||
@@ -468,7 +479,6 @@ function handle_qr_camera(event) {
|
||||
<button
|
||||
type="button"
|
||||
class="btn variant-soft-primary"
|
||||
disabled={!$ae_loc.trusted_access && 2==4}
|
||||
on:click={() => {
|
||||
console.log(`Add ${event_badge_obj_v2.full_name} ${event_badge_obj_v2.email} to the leads list`);
|
||||
|
||||
@@ -511,6 +521,10 @@ function handle_qr_camera(event) {
|
||||
$events_loc.leads.tab[$events_slct.exhibit_id] = 'leads';
|
||||
|
||||
$events_sess.leads.show_form__view_lead = $events_slct.exhibit_tracking_id;
|
||||
} else {
|
||||
// $events_sess.leads.show_form__search = true;
|
||||
$events_sess.leads.show_form__scan = true;
|
||||
$events_sess.leads.qr_scan_start = true;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -700,6 +714,8 @@ function handle_qr_camera(event) {
|
||||
on:click={() => {
|
||||
$events_sess.leads.show_form__scan = false;
|
||||
$events_sess.leads.qr_scan_start = false;
|
||||
|
||||
$events_sess.leads.qr_scan_result = null;
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-times mx-1"></span>
|
||||
@@ -738,7 +754,7 @@ function handle_qr_camera(event) {
|
||||
vDEV
|
||||
|
||||
{:else}
|
||||
???
|
||||
<p>Please close this and select a QR Scanner version</p>
|
||||
{/if}
|
||||
|
||||
<div class="qr_quick_results variant-soft-secondary font-bold p-4">
|
||||
@@ -775,6 +791,8 @@ function handle_qr_camera(event) {
|
||||
|
||||
$events_slct.badge_id = null;
|
||||
$events_slct.badge_obj = null;
|
||||
|
||||
$events_sess.leads.qr_scan_result = null;
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-times mx-1"></span>
|
||||
@@ -787,6 +805,7 @@ function handle_qr_camera(event) {
|
||||
<p>Are you sure you want to add <strong>{$event_badge_obj.full_name}</strong> to the leads list?</p>
|
||||
<p>Badge ID: <strong>{$event_badge_obj.event_badge_id_random}</strong></p>
|
||||
<div class="flex flex-row gap-16 justify-center items-center">
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn variant-soft-primary"
|
||||
@@ -800,6 +819,8 @@ function handle_qr_camera(event) {
|
||||
|
||||
// $events_slct = $events_slct;
|
||||
// $events_sess = $events_sess;
|
||||
|
||||
$events_sess.leads.qr_scan_result = null;
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-times mx-1"></span>
|
||||
@@ -849,6 +870,12 @@ function handle_qr_camera(event) {
|
||||
$events_loc.leads.tab[$events_slct.exhibit_id] = 'leads';
|
||||
|
||||
$events_sess.leads.show_form__view_lead = $events_slct.exhibit_tracking_id;
|
||||
} else {
|
||||
// $events_sess.leads.show_form__search = true;
|
||||
$events_sess.leads.show_form__scan = true;
|
||||
$events_sess.leads.qr_scan_start = true;
|
||||
|
||||
$events_sess.leads.qr_scan_result = null;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -858,6 +885,7 @@ function handle_qr_camera(event) {
|
||||
<span class="fas fa-check mx-1"></span>
|
||||
Yes
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</section> <!-- .popover__content -->
|
||||
</section> <!-- .ae_quick_popover -->
|
||||
@@ -922,6 +950,8 @@ function handle_qr_camera(event) {
|
||||
on:click={() => {
|
||||
$events_sess.leads.show_form__scan = false;
|
||||
$events_sess.leads.qr_scan_start = false;
|
||||
|
||||
$events_sess.leads.qr_scan_result = null;
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-times mx-1"></span>
|
||||
|
||||
@@ -341,7 +341,7 @@ let refresh_leads_list = setInterval(function () {
|
||||
$events_sess.leads.show_form__view_lead = $events_slct.exhibit_tracking_id;
|
||||
// $events_sess.leads.show_form__view_lead[$events_slct.exhibit_tracking_id] = true;
|
||||
}}
|
||||
class="btn btn-sm variant-soft-primary flex flex-row justify-between items-center gap-0.5 min-w-72 min-h-14 max-h-14"
|
||||
class="btn btn-sm variant-soft-primary flex flex-row justify-between items-center gap-0.5 min-w-72 lg:min-w-96 min-h-14 max-h-14"
|
||||
>
|
||||
<span class="fas fa-user mx-0.5"></span>
|
||||
<span class="text-lg grow text-center">{event_exhibit_tracking_obj.event_badge_full_name}</span>
|
||||
|
||||
Reference in New Issue
Block a user