fix: custom now opens the modal

This commit is contained in:
Arman
2022-11-11 10:40:27 +01:00
parent 9111fae331
commit 280df90b22
2 changed files with 11 additions and 5 deletions
@@ -43,5 +43,12 @@
</DropList>
<User bind:show={showUser} on:create {groups} />
<Team bind:show={showTeam} on:create {groups} />
<Team
bind:show={showTeam}
on:create
on:custom={() => {
showTeam = false;
showCustom = true;
}}
{groups} />
<Custom bind:show={showCustom} on:create {groups} />
+3 -4
View File
@@ -62,11 +62,10 @@
<svelte:fragment slot="header">Select teams</svelte:fragment>
<p class="text">
Grant access to any member of a specific team. To grant access to team members with specific
roles, you will need to set a <a
roles, you will need to set a <button
type="button"
class="link"
href="https://appwrite.io/docs/permissions"
target="_blank"
rel="noopener noreferrer">custom permission</a
on:click={() => dispatch('custom')}>custom permission</button
>.
</p>
<InputSearch