Modyfikacja navbar
This commit is contained in:
parent
5232708895
commit
02bd168ed7
|
|
@ -115,7 +115,7 @@
|
|||
</div>
|
||||
</button>
|
||||
</Menu>
|
||||
{:else if $mobile}
|
||||
{:else if $mobile && $user.role === 'admin'}
|
||||
<Tooltip content={$i18n.t('Controls')}>
|
||||
<button
|
||||
class=" flex cursor-pointer px-2 py-2 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-850 transition"
|
||||
|
|
@ -131,7 +131,7 @@
|
|||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
{#if !$mobile}
|
||||
{#if !$mobile && $user.role === 'admin'}
|
||||
<Tooltip content={$i18n.t('Controls')}>
|
||||
<button
|
||||
class=" flex cursor-pointer px-2 py-2 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-850 transition"
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
</button>
|
||||
</Tooltip>
|
||||
|
||||
{#if $user !== undefined}
|
||||
{#if $user !== undefined && $user.role === 'admin'}
|
||||
<UserMenu
|
||||
className="max-w-[200px]"
|
||||
role={$user.role}
|
||||
|
|
|
|||
Loading…
Reference in New Issue