Improved for showing the person's name

This commit is contained in:
Scott Idem
2025-05-14 21:24:25 -04:00
parent 211945828d
commit ffa33b5fa0
5 changed files with 8 additions and 3 deletions

View File

@@ -277,6 +277,8 @@ export function handle_db_save_ae_obj_li__person(
professional_title: obj.professional_title,
full_name: obj.full_name,
// full_name_override: obj.full_name_override,
full_name_override: obj.display_name_override,
affiliations: obj.affiliations,

View File

@@ -69,6 +69,7 @@ export interface Person {
professional_title?: null|string;
full_name?: string;
full_name_override?: null|string; // was called display_name
affiliations?: null|string;

View File

@@ -119,6 +119,8 @@ const ae_app_local_data_defaults: key_val = {
// family_name: null,
// professional_title: null,
full_name: null, // convenience
full_name_override: null, // was called display_name
// affiliations: null,
primary_email: null, // The primary email of the logged-in person/user
user_id: null, // The user ID of the logged-in user

View File

@@ -306,7 +306,7 @@ async function handle_change_password() {
Hide Sign-In Options
{:else}
<User class="mx-1 inline-block text-gray-500" />
{$ae_loc?.person?.full_name ?? '-- not set --'}
{$ae_loc?.person?.full_name_override ?? $ae_loc?.person?.full_name}
{/if}
{:else}
@@ -338,7 +338,7 @@ async function handle_change_password() {
$ae_sess.show__sign_in_out__fields = !$ae_sess.show__sign_in_out__fields; // Toggle the visibility of the sign-in form
}}
> -->
{$ae_loc?.person?.full_name ?? '-- not set --'}
{$ae_loc?.person?.full_name_override ?? $ae_loc?.person?.full_name}
<!-- <span class="text-sm text-gray-500">
{$ae_loc?.user.username ?? '-- not set --'}
</span> -->

View File

@@ -153,7 +153,7 @@ max-w-max -->
"
>
<User class="mx-1 inline-block text-gray-500" />
{$ae_loc?.person?.full_name ?? '-- not set --'}<br />
{$ae_loc?.person?.full_name_override ?? $ae_loc?.person?.full_name}<br />
<!-- <ShieldUser /> -->
<ShieldUser class="mx-1 inline-block text-gray-500" />
{$ae_loc?.user?.username ?? '-- not set --'}<br />