mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-27 07:54:55 -06:00
refac
This commit is contained in:
@@ -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({}, '', '/');
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user