mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
refac
This commit is contained in:
parent
a70a6589af
commit
958237473f
3 changed files with 23 additions and 1 deletions
|
|
@ -102,7 +102,7 @@
|
|||
$: if ($selectedTerminalId && showFilesTab) {
|
||||
activeTab = 'files';
|
||||
if (largeScreen) {
|
||||
showControls.set(true);
|
||||
showControls.set($settings?.showFilesOnTerminalSelect ?? true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
let widescreenMode = false;
|
||||
let splitLargeChunks = false;
|
||||
let scrollOnBranchChange = true;
|
||||
let showFilesOnTerminalSelect = true;
|
||||
let userLocation = false;
|
||||
|
||||
// Interface
|
||||
|
|
@ -244,6 +245,7 @@
|
|||
widescreenMode = $settings?.widescreenMode ?? false;
|
||||
splitLargeChunks = $settings?.splitLargeChunks ?? false;
|
||||
scrollOnBranchChange = $settings?.scrollOnBranchChange ?? true;
|
||||
showFilesOnTerminalSelect = $settings?.showFilesOnTerminalSelect ?? true;
|
||||
|
||||
temporaryChatByDefault = $settings?.temporaryChatByDefault ?? false;
|
||||
chatDirection = $settings?.chatDirection ?? 'auto';
|
||||
|
|
@ -1065,6 +1067,25 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class=" py-0.5 flex w-full justify-between">
|
||||
<div id="show-files-on-terminal-select-label" class=" self-center text-xs">
|
||||
{$i18n.t('Show Files on Terminal Select')}
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2 p-1">
|
||||
<Switch
|
||||
ariaLabelledbyId="show-files-on-terminal-select-label"
|
||||
tooltip={true}
|
||||
bind:state={showFilesOnTerminalSelect}
|
||||
on:change={() => {
|
||||
saveSettings({ showFilesOnTerminalSelect });
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class=" py-0.5 flex w-full justify-between">
|
||||
<div id="stylized-pdf-export-label" class=" self-center text-xs">
|
||||
|
|
|
|||
|
|
@ -213,6 +213,7 @@ type Settings = {
|
|||
iframeSandboxAllowForms?: boolean;
|
||||
iframeSandboxAllowSameOrigin?: boolean;
|
||||
scrollOnBranchChange?: boolean;
|
||||
showFilesOnTerminalSelect?: boolean;
|
||||
directConnections?: null;
|
||||
chatBubble?: boolean;
|
||||
copyFormatted?: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue