diff --git a/src/pages/Member.svelte b/src/pages/Member.svelte index 05acd80e..1cb8edb2 100644 --- a/src/pages/Member.svelte +++ b/src/pages/Member.svelte @@ -1,12 +1,17 @@ {#if settings && settings.appearance.color_background} @@ -72,30 +94,64 @@ + {#if isDeleted} + Member has been successfully deleted. Return to dash + {:else} + {#if isPublic} + You are currently viewing a member. + {/if} {#if err} {err} {:else if loading} {:else if member && member.id} - + - + {/if} {#if groupLoading} - fetching groups... + Fetching groups... {:else if groupErr} {groupErr} {:else if groups && groups.length > 0} - {#each groups as group} - {group.name} ({group.id})
- {/each} + + + +
+ +
Member groups +
+
+
+ + + {#each slicedGroups as group, index (group.id)} + {#if (!isPublic && group.privacy.visibility === "public") || isPublic} + + + + + + + {:else} + + + + + + + {/if} + {/each} + + + {/if} {/if}