Bug fix for when a POC is signed in. Also adjusted style to make the button more obvious.

This commit is contained in:
Scott Idem
2026-06-23 13:27:17 -04:00
parent 7ccc199b1d
commit 219f0a6507

View File

@@ -102,7 +102,7 @@ async function load_person_options_for_session_poc() {
if (!$slct.account_id) return; if (!$slct.account_id) return;
// Don't reload if already loaded or loading // Don't reload if already loaded or loading
if (Object.keys($slct.person_obj_kv ?? {}).length > 1) return; if (Object.keys($slct.person_obj_kv ?? {}).length > 1) return;
$slct.person_obj_li = core_func $slct.person_obj_li = core_func
.load_ae_obj_li__person({ .load_ae_obj_li__person({
api_cfg: $ae_api, api_cfg: $ae_api,
@@ -472,7 +472,7 @@ async function send_poc_email_link() {
value={poc_sign_in_url} value={poc_sign_in_url}
btn_class="btn btn-sm preset-outlined-secondary-300-700 transition-all duration-200 preset-filled-secondary-50-950" btn_class="btn btn-sm preset-outlined-secondary-300-700 transition-all duration-200 preset-filled-secondary-50-950"
btn_text="" btn_text=""
btn_title="Copy the {pres_mgmt_loc.current.label__session_poc_name} sign-in link to the clipboard" btn_title="Copy the {pres_mgmt_loc.current.label__session_poc_name} sign-in link to the clipboard for {$lq__event_session_obj?.poc_person_full_name} ({$lq__event_session_obj?.poc_person_primary_email})"
hide_icon={true} hide_icon={true}
hide_text={true}> hide_text={true}>
<Link size="1em" class="" /> <Link size="1em" class="" />
@@ -483,8 +483,9 @@ async function send_poc_email_link() {
<!-- Email POC sign-in link — shown when email feature is enabled and <!-- Email POC sign-in link — shown when email feature is enabled and
the POC has an email on file. Decoupled from require__session_agree: the POC has an email on file. Decoupled from require__session_agree:
staff need to send sign-in links whether or not an agreement form is staff need to send sign-in links whether or not an agreement form is
required. --> required. Hidden once the POC is already signed in (poc_is_authed);
{#if pres_mgmt_loc.current.show__email_access_link && $lq__event_session_obj?.poc_person_primary_email} trusted staff can still see it in case they need to resend. -->
{#if pres_mgmt_loc.current.show__email_access_link && $lq__event_session_obj?.poc_person_primary_email && ($ae_loc.trusted_access || !poc_is_authed)}
<button <button
type="button" type="button"
disabled={poc_email_status === 'sending'} disabled={poc_email_status === 'sending'}
@@ -516,9 +517,13 @@ async function send_poc_email_link() {
disabled={!$ae_loc.trusted_access && !poc_is_authed} disabled={!$ae_loc.trusted_access && !poc_is_authed}
class="btn btn-sm transition-colors duration-200" class="btn btn-sm transition-colors duration-200"
class:preset-tonal-success={$lq__event_session_obj?.poc_agree} class:preset-tonal-success={$lq__event_session_obj?.poc_agree}
class:preset-tonal-warning={!$lq__event_session_obj?.poc_agree} class:preset-tonal-error={!$lq__event_session_obj?.poc_agree && poc_is_authed}
class:preset-outlined-error-300-700={!$lq__event_session_obj?.poc_agree && poc_is_authed}
class:preset-tonal-warning={!$lq__event_session_obj?.poc_agree && !poc_is_authed}
onclick={() => onclick={() =>
($events_sess.pres_mgmt.show_modal__session_poc_agree = true)}> ($events_sess.pres_mgmt.show_modal__session_poc_agree = true)}
title="You must agree to the consent and release form before you can help manage this session. This is required for all {pres_mgmt_loc.current.label__session_poc_name} users."
>
{#if $lq__event_session_obj?.poc_agree} {#if $lq__event_session_obj?.poc_agree}
<Check size="1em" class="mr-1" /> Agreed <Check size="1em" class="mr-1" /> Agreed
{:else} {:else}