|
@@ -267,17 +267,19 @@
|
|
|
|
|
|
<td class="px-3 py-2 text-right">
|
|
|
<div class="flex justify-end w-full">
|
|
|
- <Tooltip content="Chats">
|
|
|
- <button
|
|
|
- class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
|
|
- on:click={async () => {
|
|
|
- showUserChatsModal = !showUserChatsModal;
|
|
|
- selectedUser = user;
|
|
|
- }}
|
|
|
- >
|
|
|
- <ChatBubbles />
|
|
|
- </button>
|
|
|
- </Tooltip>
|
|
|
+ {#if user.role !== 'admin'}
|
|
|
+ <Tooltip content="Chats">
|
|
|
+ <button
|
|
|
+ class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
|
|
+ on:click={async () => {
|
|
|
+ showUserChatsModal = !showUserChatsModal;
|
|
|
+ selectedUser = user;
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <ChatBubbles />
|
|
|
+ </button>
|
|
|
+ </Tooltip>
|
|
|
+ {/if}
|
|
|
|
|
|
<Tooltip content={$i18n.t('Edit User')}>
|
|
|
<button
|