mirror of
https://github.com/open-webui/open-webui
synced 2024-11-17 14:02:51 +00:00
fix: shift delete
This commit is contained in:
parent
a4810a5e42
commit
5d0b77e64a
@ -464,9 +464,13 @@
|
||||
on:select={() => {
|
||||
selectedChatId = chat.id;
|
||||
}}
|
||||
on:delete={() => {
|
||||
on:delete={(e) => {
|
||||
if ((e?.detail ?? '') === 'shift') {
|
||||
deleteChatHandler(chat.id);
|
||||
} else {
|
||||
deleteChat = chat;
|
||||
showDeleteConfirm = true;
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{/each}
|
||||
|
@ -201,7 +201,7 @@
|
||||
<button
|
||||
class=" self-center dark:hover:text-white transition"
|
||||
on:click={() => {
|
||||
deleteChat(chat.id);
|
||||
dispatch('delete', 'shift');
|
||||
}}
|
||||
type="button"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user