More fixes
This commit is contained in:
@@ -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, })
|
||||
|
||||
Reference in New Issue
Block a user