mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: stop offering reactions on a channel the viewer may only read (#30241)
This commit is contained in:
parent
b256115fa2
commit
669d37bea1
1 changed files with 2 additions and 1 deletions
|
|
@ -595,6 +595,7 @@
|
|||
})}
|
||||
>
|
||||
<button
|
||||
{disabled}
|
||||
class="flex items-center gap-1.5 transition rounded-xl px-2 py-1 cursor-pointer {reaction.users
|
||||
.map((u) => u.id)
|
||||
.includes($user?.id)
|
||||
|
|
@ -617,7 +618,7 @@
|
|||
</Tooltip>
|
||||
{/each}
|
||||
|
||||
{#if onReaction}
|
||||
{#if onReaction && !disabled}
|
||||
<EmojiPicker
|
||||
onSubmit={(name) => {
|
||||
onReaction(name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue