Skip to content

Commit a6e6ee6

Browse files
author
Mishig
authored
[Fix] UI bug "Delete" label (#717)
1 parent d5559df commit a6e6ee6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib/components/NavConversationItem.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@
4141
type="button"
4242
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
4343
title="Confirm delete action"
44-
on:click|preventDefault={() => dispatch("deleteConversation", conv.id)}
44+
on:click|preventDefault={() => {
45+
confirmDelete = false;
46+
dispatch("deleteConversation", conv.id);
47+
}}
4548
>
4649
<CarbonCheckmark class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
4750
</button>
4851
<button
4952
type="button"
5053
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
5154
title="Cancel delete action"
52-
on:click|preventDefault={() => {
53-
confirmDelete = false;
54-
}}
55+
on:click|preventDefault={() => (confirmDelete = false)}
5556
>
5657
<CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
5758
</button>

0 commit comments

Comments
 (0)