mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-13 01:02:25 -06:00
refac
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user