More fixes

This commit is contained in:
Scott Idem
2024-04-04 23:39:18 -04:00
parent 847fad3151
commit a5b0720933

View File

@@ -419,15 +419,15 @@ function handle_qr_camera(event) {
<button
type="button"
class="btn variant-soft-primary"
disabled={!$ae_loc.trusted_access}
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`);
// TEMPORARY: For testing and development
if (!$ae_loc.trusted_access) {
console.log('You do not have permission to add this person to the leads list.');
return false;
}
// if (!$ae_loc.trusted_access) {
// console.log('You do not have permission to add this person to the leads list.');
// return false;
// }
// TEMPORARY: For testing and development
events_func.handle_create_ae_obj__exhibit_tracking({api_cfg: $ae_api, exhibit_id: $events_slct.exhibit_id, event_badge_id: event_badge_obj_v2.event_badge_id_random, external_person_id: $events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id].key, })
@@ -734,15 +734,15 @@ function handle_qr_camera(event) {
<button
type="button"
class="btn variant-soft-primary"
disabled={!$ae_loc.trusted_access}
disabled={!$ae_loc.trusted_access && 2==4}
on:click={() => {
console.log(`Add ${event_badge_obj.full_name} ${event_badge_obj.email} to the leads list`);
// TEMPORARY: For testing and development
if (!$ae_loc.trusted_access) {
console.log('You do not have permission to add this person to the leads list.');
return false;
}
// if (!$ae_loc.trusted_access) {
// console.log('You do not have permission to add this person to the leads list.');
// return false;
// }
// TEMPORARY: For testing and development
events_func.handle_create_ae_obj__exhibit_tracking({api_cfg: $ae_api, exhibit_id: $events_slct.exhibit_id, event_badge_id: $events_slct.badge_id, external_person_id: $events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id].key, })