Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
1c355929
Commit
1c355929
authored
Jun 16, 2024
by
Timothy J. Baek
Browse files
refac
parent
9f7ef209
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+4
-1
src/lib/components/layout/Sidebar/ChatItem.svelte
src/lib/components/layout/Sidebar/ChatItem.svelte
+1
-1
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
1c355929
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
const onBlur = () => {
const onBlur = () => {
shiftKey = false;
shiftKey = false;
selectedChatId =
false
;
selectedChatId =
null
;
};
};
window.addEventListener('keydown', onKeyDown);
window.addEventListener('keydown', onKeyDown);
...
@@ -477,6 +477,9 @@
...
@@ -477,6 +477,9 @@
on:select={() => {
on:select={() => {
selectedChatId = chat.id;
selectedChatId = chat.id;
}}
}}
on:unselect={() => {
selectedChatId = null;
}}
on:delete={(e) => {
on:delete={(e) => {
if ((e?.detail ?? '') === 'shift') {
if ((e?.detail ?? '') === 'shift') {
deleteChatHandler(chat.id);
deleteChatHandler(chat.id);
...
...
src/lib/components/layout/Sidebar/ChatItem.svelte
View file @
1c355929
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
dispatch('delete');
dispatch('delete');
}}
}}
onClose={() => {
onClose={() => {
selected = false
;
dispatch('unselect')
;
}}
}}
>
>
<button
<button
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment