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={() => {
|
on:select={() => {
|
||||||
selectedChatId = chat.id;
|
selectedChatId = chat.id;
|
||||||
}}
|
}}
|
||||||
on:delete={() => {
|
on:delete={(e) => {
|
||||||
deleteChat = chat;
|
if ((e?.detail ?? '') === 'shift') {
|
||||||
showDeleteConfirm = true;
|
deleteChatHandler(chat.id);
|
||||||
|
} else {
|
||||||
|
deleteChat = chat;
|
||||||
|
showDeleteConfirm = true;
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -201,7 +201,7 @@
|
|||||||
<button
|
<button
|
||||||
class=" self-center dark:hover:text-white transition"
|
class=" self-center dark:hover:text-white transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
deleteChat(chat.id);
|
dispatch('delete', 'shift');
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user