mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 08:55:12 -05:00
chore: remove the Show Files on Terminal Select setting (#33855)
This commit is contained in:
8 files changed
+1
-53
No files matched your search
@@ -4,9 +4,7 @@
|
||||
import {
|
||||
chatId as activeChatId,
|
||||
config,
|
||||
mobile,
|
||||
settings,
|
||||
showTabs,
|
||||
showSettings,
|
||||
terminalServers,
|
||||
selectedTerminalId,
|
||||
@@ -24,7 +22,6 @@
|
||||
|
||||
export let show = false;
|
||||
export let disabled = false;
|
||||
export let fullWidthTabs = false;
|
||||
|
||||
const chatContext = (terminal: any) => terminal?.contexts?.chat ?? {};
|
||||
|
||||
@@ -70,9 +67,6 @@
|
||||
const selectDirect = async (terminal: (typeof directTerminals)[0]) => {
|
||||
const newId = $selectedTerminalId === terminal.url ? null : terminal.url;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && !$mobile && !fullWidthTabs) {
|
||||
showTabs.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
|
||||
}
|
||||
|
||||
// Enable the selected direct terminal, disable all others
|
||||
const updatedServers = ($settings?.terminalServers ?? []).map((s) => ({
|
||||
@@ -94,9 +88,6 @@
|
||||
const selectSystem = async (terminal: (typeof systemTerminals)[0]) => {
|
||||
const newId = $selectedTerminalId === terminal.id ? null : terminal.id;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && !$mobile && !fullWidthTabs) {
|
||||
showTabs.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
|
||||
}
|
||||
|
||||
// Disable all direct terminals when switching to a system terminal
|
||||
if ($settings?.terminalServers?.some((s) => s.enabled)) {
|
||||
|
||||
Reference in new issue
Block a user