Commit 5d0b77e6 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: shift delete

parent a4810a5e
......@@ -464,9 +464,13 @@
on:select={() => {
selectedChatId = chat.id;
}}
on:delete={() => {
deleteChat = chat;
showDeleteConfirm = true;
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"
>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment