mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
This commit is contained in:
parent
debcc3a652
commit
08ff3bd30f
2 changed files with 8 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
const { saveAs } = fileSaver;
|
||||
|
||||
import {
|
||||
chatId,
|
||||
chats,
|
||||
user,
|
||||
settings,
|
||||
|
|
@ -139,7 +140,12 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<ArchivedChatsModal bind:show={showArchivedChatsModal} onUpdate={handleArchivedChatsChange} />
|
||||
<ArchivedChatsModal bind:show={showArchivedChatsModal} onUpdate={handleArchivedChatsChange} onDelete={(id) => {
|
||||
if ($chatId === id) {
|
||||
goto('/');
|
||||
chatId.set('');
|
||||
}
|
||||
}} />
|
||||
<SharedChatsModal bind:show={showSharedChatsModal} />
|
||||
<FilesModal bind:show={showFilesModal} />
|
||||
|
||||
|
|
|
|||
|
|
@ -594,8 +594,8 @@
|
|||
}}
|
||||
onDelete={(id) => {
|
||||
if ($chatId === id) {
|
||||
goto('/');
|
||||
chatId.set('');
|
||||
window.history.replaceState({}, '', '/');
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue