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