From bfc9e6f5c07bc2f19c9e20afa1d0bcb1a25e386d Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 14 Mar 2023 17:16:11 +0100 Subject: [PATCH] fix(frontend): use display name for members if possible --- .../src/routes/@[username]/[memberName]/+page.svelte | 3 ++- frontend/src/routes/edit/member/[id]/+page.svelte | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/src/routes/@[username]/[memberName]/+page.svelte b/frontend/src/routes/@[username]/[memberName]/+page.svelte index 8fe056b..15044a2 100644 --- a/frontend/src/routes/@[username]/[memberName]/+page.svelte +++ b/frontend/src/routes/@[username]/[memberName]/+page.svelte @@ -25,7 +25,8 @@
{#if $userStore && $userStore.id === data.user.id} - You are currently viewing the public profile of {data.name}. + You are currently viewing the public profile of {data.display_name ?? + data.name}.
Edit profile
{/if} diff --git a/frontend/src/routes/edit/member/[id]/+page.svelte b/frontend/src/routes/edit/member/[id]/+page.svelte index 1f4108f..498171d 100644 --- a/frontend/src/routes/edit/member/[id]/+page.svelte +++ b/frontend/src/routes/edit/member/[id]/+page.svelte @@ -252,22 +252,26 @@ - Edit profile - pronouns.cc + Edit member profile - pronouns.cc

- Edit profile + Edit member profile {#if modified} {/if} - +

-

If you want to delete this member, type their name below:

+

+ If you want to delete this member, type their name ({data.member.name}) below: +