mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-26 15:20:59 -05:00
refac
This commit is contained in:
1 parent
eed4c1f693
commit
c5981aaea6
6 files changed
+14
-8
No files matched your search
@@ -4,6 +4,7 @@
|
||||
import {
|
||||
chatId as activeChatId,
|
||||
config,
|
||||
mobile,
|
||||
settings,
|
||||
showControls,
|
||||
showSettings,
|
||||
@@ -68,7 +69,7 @@
|
||||
const selectDirect = async (terminal: (typeof directTerminals)[0]) => {
|
||||
const newId = $selectedTerminalId === terminal.url ? null : terminal.url;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && window.matchMedia('(min-width: 1024px)').matches) {
|
||||
if (newId && !$mobile) {
|
||||
showControls.set($settings?.showFilesOnTerminalSelect ?? true);
|
||||
}
|
||||
|
||||
@@ -92,7 +93,7 @@
|
||||
const selectSystem = async (terminal: (typeof systemTerminals)[0]) => {
|
||||
const newId = $selectedTerminalId === terminal.id ? null : terminal.id;
|
||||
selectedTerminalId.set(newId);
|
||||
if (newId && window.matchMedia('(min-width: 1024px)').matches) {
|
||||
if (newId && !$mobile) {
|
||||
showControls.set($settings?.showFilesOnTerminalSelect ?? true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user