mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
refac
This commit is contained in:
parent
495198508d
commit
517cfa4233
2 changed files with 15 additions and 0 deletions
|
|
@ -472,6 +472,19 @@
|
|||
};
|
||||
|
||||
let taskIds = null;
|
||||
let liveStatus = '';
|
||||
|
||||
$: if (loading || !history.currentId) {
|
||||
liveStatus = '';
|
||||
} else if (
|
||||
Object.values(history.messages).some(
|
||||
(message) => message.role === 'assistant' && message.done === false
|
||||
)
|
||||
) {
|
||||
liveStatus = $i18n.t('Generating...');
|
||||
} else if (liveStatus) {
|
||||
liveStatus = $i18n.t('Response complete');
|
||||
}
|
||||
|
||||
// Chat Input
|
||||
let prompt = '';
|
||||
|
|
@ -5228,6 +5241,7 @@
|
|||
/>
|
||||
{/if}
|
||||
<div id="chat-pane" class="flex flex-col flex-auto z-10 w-full @container overflow-auto">
|
||||
<div class="sr-only" aria-live="polite" aria-atomic="true">{liveStatus}</div>
|
||||
{#if ($settings?.landingPageMode === 'chat' && !$selectedFolder) || createMessagesList(history, history.currentId).length > 0}
|
||||
<div
|
||||
class=" pb-2.5 flex flex-col justify-between w-full flex-auto overflow-auto h-0 max-w-full z-10 scrollbar-hidden"
|
||||
|
|
|
|||
|
|
@ -2199,6 +2199,7 @@
|
|||
"Resize panel": "",
|
||||
"Resolved": "",
|
||||
"Response": "",
|
||||
"Response complete": "",
|
||||
"Response notifications cannot be activated as the website permissions have been denied. Please visit your browser settings to grant the necessary access.": "",
|
||||
"Responses": "",
|
||||
"Restart": "",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue