mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
fix: read only compare messages
This commit is contained in:
parent
92700302b9
commit
5ef478a154
@ -340,6 +340,7 @@
|
|||||||
<CompareMessages
|
<CompareMessages
|
||||||
bind:history
|
bind:history
|
||||||
{messages}
|
{messages}
|
||||||
|
{readOnly}
|
||||||
{chatId}
|
{chatId}
|
||||||
parentMessage={history.messages[message.parentId]}
|
parentMessage={history.messages[message.parentId]}
|
||||||
{messageIdx}
|
{messageIdx}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
export let parentMessage;
|
export let parentMessage;
|
||||||
|
|
||||||
|
export let readOnly = false;
|
||||||
|
|
||||||
export let updateChatMessages: Function;
|
export let updateChatMessages: Function;
|
||||||
export let confirmEditResponseMessage: Function;
|
export let confirmEditResponseMessage: Function;
|
||||||
export let rateMessage: Function;
|
export let rateMessage: Function;
|
||||||
@ -134,6 +136,7 @@
|
|||||||
{confirmEditResponseMessage}
|
{confirmEditResponseMessage}
|
||||||
showPreviousMessage={() => showPreviousMessage(model)}
|
showPreviousMessage={() => showPreviousMessage(model)}
|
||||||
showNextMessage={() => showNextMessage(model)}
|
showNextMessage={() => showNextMessage(model)}
|
||||||
|
{readOnly}
|
||||||
{rateMessage}
|
{rateMessage}
|
||||||
{copyToClipboard}
|
{copyToClipboard}
|
||||||
{continueGeneration}
|
{continueGeneration}
|
||||||
|
Loading…
Reference in New Issue
Block a user