This was a lot... things are mostly working again. The changing of id_random properties caused some problems. The hosted_file_hash_sha256 is not working? There are other issues as well... This will take some time.
This commit is contained in:
@@ -4,9 +4,9 @@ console.log(`ae_events_leads exhibit [slug] leads_add_scan.svelte`, $events_slct
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import { liveQuery } from "dexie";
|
||||
import { db_events } from "$lib/ae_events/db_events";
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
// import { core_func } from '$lib/ae_core_functions';
|
||||
import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
|
||||
import { events_loc, events_sess, events_slct, events_trigger } from '$lib/stores/ae_events_stores';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
import Element_qr_scanner from '$lib/elements/element_qr_scanner.svelte';
|
||||
@@ -152,7 +152,7 @@ function handle_qr_scan_result(event) {
|
||||
console.log(`Ignoring. The object returned was unexpected or not valid.`);
|
||||
console.log(qr_scan_obj);
|
||||
}
|
||||
} else if (qr_scan_obj.qr_type == 'MECARD') {
|
||||
} else if (qr_scan_obj && qr_scan_obj.qr_type == 'MECARD') {
|
||||
console.log(`Got a QR type of MECARD. This was not expected, but we will at least display it???`);
|
||||
|
||||
// https://github.com/ertant/vCard
|
||||
@@ -171,7 +171,7 @@ function handle_qr_scan_result(event) {
|
||||
}
|
||||
}
|
||||
|
||||
function handle_qr_camera(event) {
|
||||
function handle_qr_camera(event: CustomEvent<any>) {
|
||||
console.log('*** handle_qr_camera() ***', event.detail);
|
||||
|
||||
if (!$ae_loc.hub.qr) {
|
||||
@@ -835,7 +835,7 @@ function handle_qr_camera(event) {
|
||||
<button
|
||||
type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
disabled={!$ae_loc.trusted_access && 2==4}
|
||||
disabled={!$ae_loc.trusted_access}
|
||||
on:click={() => {
|
||||
console.log(`Add ${event_badge_obj.full_name} ${event_badge_obj.email} to the leads list`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user