mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 15:01:00 +00:00
refac
This commit is contained in:
parent
2840ff405b
commit
00e8849445
@ -42,6 +42,10 @@
|
|||||||
top = false;
|
top = false;
|
||||||
messages = null;
|
messages = null;
|
||||||
channel = null;
|
channel = null;
|
||||||
|
threadId = null;
|
||||||
|
|
||||||
|
typingUsers = [];
|
||||||
|
typingUsersTimeout = {};
|
||||||
|
|
||||||
channel = await getChannelById(localStorage.token, id).catch((error) => {
|
channel = await getChannelById(localStorage.token, id).catch((error) => {
|
||||||
return null;
|
return null;
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
export let message;
|
export let message;
|
||||||
export let showUserProfile = true;
|
export let showUserProfile = true;
|
||||||
|
export let thread = false;
|
||||||
|
|
||||||
export let onDelete: Function = () => {};
|
export let onDelete: Function = () => {};
|
||||||
export let onEdit: Function = () => {};
|
export let onEdit: Function = () => {};
|
||||||
@ -101,7 +102,7 @@
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</ReactionPicker>
|
</ReactionPicker>
|
||||||
|
|
||||||
{#if message?.parent_id === null}
|
{#if !thread}
|
||||||
<Tooltip content={$i18n.t('Reply in Thread')}>
|
<Tooltip content={$i18n.t('Reply in Thread')}>
|
||||||
<button
|
<button
|
||||||
class="hover:bg-gray-100 dark:hover:bg-gray-800 transition rounded-lg p-1"
|
class="hover:bg-gray-100 dark:hover:bg-gray-800 transition rounded-lg p-1"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
export let onClose = () => {};
|
export let onClose = () => {};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col w-full h-full bg-gray-50 dark:bg-gray-900 px-3.5 py-3">
|
<div class="flex flex-col w-full h-full bg-gray-50 dark:bg-gray-850 px-3.5 py-3">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div class=" font-medium text-lg">Thread</div>
|
<div class=" font-medium text-lg">Thread</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user