Hide add member button for non-members
This commit is contained in:
parent
5d6661f964
commit
10e4d83bce
1 changed files with 6 additions and 4 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue