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

fix: shift delete

parent a4810a5e
...@@ -464,9 +464,13 @@ ...@@ -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 @@ ...@@ -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"
> >
......
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