Hide developer mode option when you aren't a developer
This commit is contained in:
parent
d856eae6f7
commit
4a53d4c11e
|
@ -64,12 +64,14 @@
|
||||||
>
|
>
|
||||||
Update password
|
Update password
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem
|
{#if $auth.isBuilder}
|
||||||
icon="UserDeveloper"
|
<MenuItem
|
||||||
on:click={() => $goto("../portal")}
|
icon="UserDeveloper"
|
||||||
>
|
on:click={() => $goto("../portal")}
|
||||||
Open developer mode
|
>
|
||||||
</MenuItem>
|
Open developer mode
|
||||||
|
</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