forked from coracle/flotilla
Hide add member button for non-members
This commit is contained in:
@@ -159,9 +159,11 @@
|
|||||||
<Icon icon={AltArrowLeft} />
|
<Icon icon={AltArrowLeft} />
|
||||||
Go back
|
Go back
|
||||||
</Button>
|
</Button>
|
||||||
<Button class="btn btn-primary" onclick={addMember}>
|
{#if $userIsAdmin}
|
||||||
<Icon icon={AddCircle} />
|
<Button class="btn btn-primary" onclick={addMember}>
|
||||||
Add members
|
<Icon icon={AddCircle} />
|
||||||
</Button>
|
Add members
|
||||||
|
</Button>
|
||||||
|
{/if}
|
||||||
</ModalFooter>
|
</ModalFooter>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user