fix: shift delete
This commit is contained in:
1 parent
a4810a5e42
commit
5d0b77e64a
2 files changed
+8
-4
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user