Bug fix for biography copy button
This commit is contained in:
@@ -67,11 +67,13 @@ let lq__event_file_obj_li = liveQuery(
|
||||
|
||||
|
||||
ae_tmp.biography = null;
|
||||
// && ae_tmp.biography === null
|
||||
$: if ($lq__event_presenter_obj?.biography && ae_tmp.biography === null) {
|
||||
ae_tmp.biography = JSON.parse(JSON.stringify($lq__event_presenter_obj.biography));
|
||||
// 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);
|
||||
}
|
||||
|
||||
// console.log(`ae_tmp.biography:`, $lq__event_presenter_obj?.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;
|
||||
@@ -1314,6 +1316,17 @@ $: if ($lq__event_presenter_obj) {
|
||||
<!-- The presenters biography. There should be a character counter. -->
|
||||
<li>
|
||||
<div class="label event_presenter__biography required space-y-4">
|
||||
<button
|
||||
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}
|
||||
title="Copy the presenter access link to the clipboard."
|
||||
>
|
||||
<span class="fas fa-copy mx-1"></span>
|
||||
Copy Biography Text
|
||||
</button>
|
||||
|
||||
<label for="presenter__biography" class="label">
|
||||
<span class="fas fa-book"></span>
|
||||
Presenter Biography
|
||||
@@ -1322,17 +1335,6 @@ $: if ($lq__event_presenter_obj) {
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<button
|
||||
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}
|
||||
title="Copy the presenter access link to the clipboard."
|
||||
>
|
||||
<span class="fas fa-copy mx-1"></span>
|
||||
Copy Biography Text
|
||||
</button>
|
||||
|
||||
<textarea
|
||||
name="biography"
|
||||
id="presenter__biography"
|
||||
|
||||
Reference in New Issue
Block a user