Bug fixes for the bio field and copy button

This commit is contained in:
Scott Idem
2024-08-15 16:34:34 -04:00
parent f209f3ce37
commit 46cc89ad92

View File

@@ -65,28 +65,17 @@ let lq__event_file_obj_li = liveQuery(
async () => await db_events.files.where('event_presenter_id_random').equals($lq__event_presenter_obj?.event_presenter_id_random).toArray()
);
// ae_tmp.biography = '';
ae_tmp.biography = null;
// && ae_tmp.biography === null
console.log(`ae_tmp.biography:`, ae_tmp.biography);
$: if ($lq__event_presenter_obj?.biography && ae_tmp.biography === null) {
// ae_tmp.biography = JSON.parse(JSON.stringify($lq__event_presenter_obj?.biography ?? ''));
// WHAT WAS THIS FOR HERE??? // ae_tmp.biography = JSON.parse(JSON.stringify($lq__event_presenter_obj?.biography ?? ''));
ae_tmp.biography = $lq__event_presenter_obj?.biography ?? '';
console.log(`ae_tmp.biography:`, ae_tmp.biography);
}
$slct.person_obj_kv = {}; // This is intended for the person presenter lookup list when generated.
// $events_slct.event_presenter_obj = $lq__event_presenter_obj;
// $events_sess.pres_mgmt.disable_submit__opt_out = false;
// let tmp_agree = false;
// let tmp_opt_out: key_val = {
// audio: false,
// video: false,
// transcription_and_publication: false,
// publication_in_app: false
// };
onMount(() => {
console.log('Events Pres Mgmt: presenter_view.svelte');
@@ -1320,7 +1309,7 @@ $: if ($lq__event_presenter_obj) {
type="button"
use:clipboard={ae_tmp.biography?.trim()}
class="btn btn-sm variant-ghost-warning float-right m-1"
class:hidden={ae_tmp.biography?.length < 100}
class:hidden={!ae_tmp?.biography || ae_tmp.biography.length < 100}
title="Copy the presenter access link to the clipboard."
>
<span class="fas fa-copy mx-1"></span>