mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00:00
refac
This commit is contained in:
parent
0413768244
commit
4615d30a61
1 changed files with 2 additions and 2 deletions
|
|
@ -829,7 +829,7 @@
|
|||
$: if (mounted && !fullWidth && $showTabs === true && !tabs.tabs.length) {
|
||||
const options = [
|
||||
...availableViews
|
||||
.filter((view) => view.available)
|
||||
.filter((view) => view.available && view.kind !== 'side')
|
||||
.map((view) => () => {
|
||||
if (view.kind === 'files') openFiles();
|
||||
else openFeature(view.kind as 'artifacts' | 'preview' | 'voice' | 'comments' | 'side');
|
||||
|
|
@ -841,7 +841,7 @@
|
|||
];
|
||||
if (terminalFilesAvailable || (!hasOpenedTabs && showFilesTab)) openFiles();
|
||||
else if (options.length === 1) options[0]();
|
||||
else if (!options.length) showTabs.set(false);
|
||||
else if (!options.length && !canSideChat) showTabs.set(false);
|
||||
hasOpenedTabs = true;
|
||||
}
|
||||
$: if (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue