Hide developer mode option when you aren't a developer
This commit is contained in:
parent
742f46d730
commit
2b3930ea71
|
@ -64,12 +64,14 @@
|
||||||
>
|
>
|
||||||
Update password
|
Update password
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
{#if $auth.isBuilder}
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon="UserDeveloper"
|
icon="UserDeveloper"
|
||||||
on:click={() => $goto("../portal")}
|
on:click={() => $goto("../portal")}
|
||||||
>
|
>
|
||||||
Open developer mode
|
Open developer mode
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
{/if}
|
||||||
<MenuItem icon="LogOut" on:click={auth.logout}>Log out</MenuItem>
|
<MenuItem icon="LogOut" on:click={auth.logout}>Log out</MenuItem>
|
||||||
</ActionMenu>
|
</ActionMenu>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue