feat: add report button to profiles
This commit is contained in:
parent
a0bc39bcba
commit
f02e64fca7
4 changed files with 73 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
import { PUBLIC_BASE_URL } from "$env/static/public";
|
||||
import { userStore } from "$lib/store";
|
||||
import renderMarkdown from "$lib/api/markdown";
|
||||
import ReportButton from "../ReportButton.svelte";
|
||||
|
||||
export let data: PageData;
|
||||
|
||||
|
@ -86,6 +87,11 @@
|
|||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{#if $userStore && $userStore.id !== data.user.id}
|
||||
<div class="row">
|
||||
<ReportButton subject="member" reportUrl="/members/{data.id}/reports" />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue