feat: add warning on edit member page if member list is private

This commit is contained in:
Sam 2023-05-08 22:59:25 +02:00
parent 6decfab248
commit 26b0d297ab
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
2 changed files with 7 additions and 1 deletions

View File

@ -580,6 +580,13 @@
<label class="form-check-label" for="unlisted">Hide from member list</label>
</div>
<p class="text-muted mt-1">
{#if data.user.list_private}
<Icon name="exclamation-triangle-fill" aria-hidden />
Your member list is currently hidden, so <strong>this setting has no effect</strong>. If
you want to make your member list visible again,
<a href="/edit/profile">edit your user profile</a>.
<br />
{/if}
<Icon name="info-circle-fill" aria-hidden />
This <em>only</em> hides this member from your member list.
<strong>

View File

@ -1,6 +1,5 @@
<script lang="ts">
import {
Button,
ButtonDropdown,
DropdownItem,
DropdownMenu,