mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
parent
96c7a0ac3c
commit
0c6f22b20b
@ -14,6 +14,7 @@
|
|||||||
dayjs.extend(calendar);
|
dayjs.extend(calendar);
|
||||||
|
|
||||||
export let show = false;
|
export let show = false;
|
||||||
|
export let onClose = () => {};
|
||||||
|
|
||||||
let query = '';
|
let query = '';
|
||||||
let page = 1;
|
let page = 1;
|
||||||
@ -137,6 +138,7 @@
|
|||||||
draggable="false"
|
draggable="false"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
show = false;
|
show = false;
|
||||||
|
onClose();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class=" flex-1">
|
<div class=" flex-1">
|
||||||
|
@ -432,7 +432,14 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<SearchModal bind:show={$showSearch} />
|
<SearchModal
|
||||||
|
bind:show={$showSearch}
|
||||||
|
onClose={() => {
|
||||||
|
if ($mobile) {
|
||||||
|
showSidebar.set(false);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
bind:this={navElement}
|
bind:this={navElement}
|
||||||
|
Loading…
Reference in New Issue
Block a user