1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00

Hide developer mode option when you aren't a developer

This commit is contained in:
Andrew Kingston 2021-05-24 16:49:43 +01:00
parent 742f46d730
commit 2b3930ea71

View file

@ -64,12 +64,14 @@
>
Update password
</MenuItem>
<MenuItem
icon="UserDeveloper"
on:click={() => $goto("../portal")}
>
Open developer mode
</MenuItem>
{#if $auth.isBuilder}
<MenuItem
icon="UserDeveloper"
on:click={() => $goto("../portal")}
>
Open developer mode
</MenuItem>
{/if}
<MenuItem icon="LogOut" on:click={auth.logout}>Log out</MenuItem>
</ActionMenu>
</div>