enh: ability to set chat controls permissions

This commit is contained in:
Timothy Jaeryang Baek
2025-01-15 23:08:54 -08:00
parent 56f57928c2
commit 90d4bedae8
3 changed files with 62 additions and 56 deletions
+2 -2
View File
@@ -114,7 +114,7 @@
</div>
</button>
</Menu>
{:else if $mobile}
{:else if $mobile && ($user.role === 'admin' || $user.permissions.chat?.controls)}
<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"
@@ -130,7 +130,7 @@
</Tooltip>
{/if}
{#if !$mobile}
{#if !$mobile && ($user.role === 'admin' || $user.permissions.chat?.controls)}
<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"