fix: only show create member if the page is public

This commit is contained in:
Fulmine 2022-03-02 16:49:07 +01:00
parent bc572416d1
commit 5a43a38bb7
2 changed files with 4 additions and 0 deletions

View File

@ -284,7 +284,9 @@
</Col> </Col>
</Row> </Row>
<ListPagination bind:currentPage bind:pageAmount /> <ListPagination bind:currentPage bind:pageAmount />
{#if !isPublic}
<NewGroup on:create={addGroupToList} /> <NewGroup on:create={addGroupToList} />
{/if}
<Accordion class="my-3" stayOpen> <Accordion class="my-3" stayOpen>
{#each slicedList as group, index (group.id)} {#each slicedList as group, index (group.id)}
{#if (!isPublic && group.privacy.visibility === "public") || isPublic} {#if (!isPublic && group.privacy.visibility === "public") || isPublic}

View File

@ -286,7 +286,9 @@
</Col> </Col>
</Row> </Row>
<ListPagination bind:currentPage bind:pageAmount /> <ListPagination bind:currentPage bind:pageAmount />
{#if !isPublic}
<NewMember on:create={addMemberToList} /> <NewMember on:create={addMemberToList} />
{/if}
<Accordion class="my-3" stayOpen> <Accordion class="my-3" stayOpen>
{#each slicedList as member, index (member.id)} {#each slicedList as member, index (member.id)}
{#if (!isPublic && member.privacy.visibility === "public") || isPublic} {#if (!isPublic && member.privacy.visibility === "public") || isPublic}