mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-16 09:41:23 +00:00
refac
This commit is contained in:
parent
ea1c60fbdf
commit
2b1fb53f4d
2 changed files with 2 additions and 8 deletions
|
|
@ -183,12 +183,6 @@
|
|||
showControls.set('files');
|
||||
}
|
||||
|
||||
// Keep Files selected when a terminal is active; opening the panel is handled by selection UI.
|
||||
$: if ($selectedTerminalId && terminalFilesAvailable) {
|
||||
activeTab = 'files';
|
||||
if ($showControls) showControls.set('files');
|
||||
}
|
||||
|
||||
// Clear selected direct terminal if user lost permission
|
||||
$: if (
|
||||
$selectedTerminalId &&
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
const newId = $selectedTerminalId === terminal.url ? null : terminal.url;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && !$mobile) {
|
||||
showControls.set($settings?.showFilesOnTerminalSelect ?? true);
|
||||
showControls.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
|
||||
}
|
||||
|
||||
// Enable the selected direct terminal, disable all others
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
const newId = $selectedTerminalId === terminal.id ? null : terminal.id;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && !$mobile) {
|
||||
showControls.set($settings?.showFilesOnTerminalSelect ?? true);
|
||||
showControls.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
|
||||
}
|
||||
|
||||
// Disable all direct terminals when switching to a system terminal
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue