mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
refac
This commit is contained in:
parent
0e3135f8dc
commit
5f76c250f8
2 changed files with 7 additions and 2 deletions
|
|
@ -125,7 +125,7 @@
|
|||
class="p-0.5 rounded-md text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition"
|
||||
on:click|stopPropagation={() => {
|
||||
show = false;
|
||||
showSettings.set(true);
|
||||
showSettings.set('tools');
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
|
|
|
|||
|
|
@ -31,11 +31,16 @@
|
|||
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
export let show = false;
|
||||
export let show: boolean | string = false;
|
||||
|
||||
$: if (show) {
|
||||
if (typeof show === 'string') {
|
||||
selectedTab = show;
|
||||
show = true;
|
||||
}
|
||||
addScrollListener();
|
||||
} else {
|
||||
selectedTab = 'general';
|
||||
removeScrollListener();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue