mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
refac
This commit is contained in:
parent
97650bbbea
commit
044a5fd0a5
5 changed files with 8 additions and 0 deletions
|
|
@ -3682,6 +3682,8 @@
|
|||
}
|
||||
|
||||
const model = atSelectedModel?.id ?? selectedModels.find((modelId) => modelId);
|
||||
// Preserve the former toast translation for i18n extraction.
|
||||
// const toastId = toast.loading($i18n.t('Compacting context...'));
|
||||
const compactChatId = $chatId;
|
||||
const compactMessageId = history.currentId;
|
||||
if ($contextCompactions[compactMessageId] === 'in_progress') return;
|
||||
|
|
|
|||
|
|
@ -2928,6 +2928,7 @@
|
|||
</div>
|
||||
{:else}
|
||||
<div class=" flex items-center">
|
||||
<!-- Preserve the former upload label for i18n extraction: $i18n.t('Waiting for upload...') -->
|
||||
<Tooltip content={$i18n.t('Send message')}>
|
||||
<button
|
||||
id="send-message-button"
|
||||
|
|
|
|||
|
|
@ -614,6 +614,7 @@
|
|||
<div
|
||||
class="{groupedNotes.length - 1 !== idx ? 'mb-3' : ''} gap-y-0.5 flex flex-col"
|
||||
>
|
||||
<!-- Preserve the former row label for i18n extraction: $i18n.t('Open note') -->
|
||||
{#each notesList as note, idx (note.id)}
|
||||
<div
|
||||
class="group flex min-h-8 w-full items-center gap-2 rounded-xl px-2 py-[0.375rem] text-left transition hover:bg-gray-50 focus-within:bg-gray-50 dark:hover:bg-gray-900 dark:focus-within:bg-gray-900"
|
||||
|
|
|
|||
|
|
@ -1250,6 +1250,9 @@
|
|||
{/if}
|
||||
</div>
|
||||
{:else}
|
||||
<!-- Preserve the former description labels for i18n extraction:
|
||||
aria-label={enableDescription ? $i18n.t('Custom description enabled') : $i18n.t('Default description enabled')}
|
||||
-->
|
||||
<button
|
||||
class="grid w-full grid-cols-[7rem_minmax(0,1fr)] items-center gap-2 rounded-sm text-start text-xs font-normal text-gray-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 sm:grid-cols-[8rem_minmax(0,1fr)]"
|
||||
type="button"
|
||||
|
|
|
|||
|
|
@ -542,6 +542,7 @@
|
|||
</div>
|
||||
{:else}
|
||||
<div class="gap-y-0.5 grid my-1">
|
||||
<!-- Preserve the former row label for i18n extraction: $i18n.t('Open automation') -->
|
||||
{#each automations as automation (automation.id)}
|
||||
<div
|
||||
role="presentation"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue