feat: add unlisted member indicator to member list

This commit is contained in:
Jake 2023-06-05 12:43:33 +02:00
parent d25545fa03
commit a6526b7f00
1 changed files with 7 additions and 1 deletions

View File

@ -6,10 +6,13 @@
type User,
type CustomPreferences,
} from "$lib/api/entities";
import { Icon } from "sveltestrap";
import FallbackImage from "./FallbackImage.svelte";
export let user: User;
export let member: PartialMember;
export let member: PartialMember & {
unlisted?: boolean
};
let pronouns: string | undefined;
@ -46,6 +49,9 @@
<p class="m-2">
<a class="text-reset fs-5 text-break" href="/@{user.name}/{member.name}">
{member.display_name ?? member.name}
{#if member.unlisted === true}
<Icon name="lock"/>
{/if}
</a>
{#if pronouns}
<br />