mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 02:57:57 -05:00
refac
This commit is contained in:
1 parent
8eb2cabf49
commit
89b924aaea
4 files changed
+10
-2
No files matched your search
@@ -24,6 +24,7 @@
|
||||
|
||||
export let show = false;
|
||||
export let disabled = false;
|
||||
export let fullWidthTabs = false;
|
||||
|
||||
const chatContext = (terminal: any) => terminal?.contexts?.chat ?? {};
|
||||
|
||||
@@ -69,7 +70,7 @@
|
||||
const selectDirect = async (terminal: (typeof directTerminals)[0]) => {
|
||||
const newId = $selectedTerminalId === terminal.url ? null : terminal.url;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && !$mobile) {
|
||||
if (newId && !$mobile && !fullWidthTabs) {
|
||||
showTabs.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
|
||||
}
|
||||
|
||||
@@ -93,7 +94,7 @@
|
||||
const selectSystem = async (terminal: (typeof systemTerminals)[0]) => {
|
||||
const newId = $selectedTerminalId === terminal.id ? null : terminal.id;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && !$mobile) {
|
||||
if (newId && !$mobile && !fullWidthTabs) {
|
||||
showTabs.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user