Spaces:
Build error
Build error
Mishig
commited on
Commit
•
a6e6ee6
1
Parent(s):
d5559df
[Fix] UI bug "Delete" label (#717)
Browse files
src/lib/components/NavConversationItem.svelte
CHANGED
@@ -41,7 +41,10 @@
|
|
41 |
type="button"
|
42 |
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
|
43 |
title="Confirm delete action"
|
44 |
-
on:click|preventDefault={() =>
|
|
|
|
|
|
|
45 |
>
|
46 |
<CarbonCheckmark class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
|
47 |
</button>
|
@@ -49,9 +52,7 @@
|
|
49 |
type="button"
|
50 |
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
|
51 |
title="Cancel delete action"
|
52 |
-
on:click|preventDefault={() =>
|
53 |
-
confirmDelete = false;
|
54 |
-
}}
|
55 |
>
|
56 |
<CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
|
57 |
</button>
|
|
|
41 |
type="button"
|
42 |
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
|
43 |
title="Confirm delete action"
|
44 |
+
on:click|preventDefault={() => {
|
45 |
+
confirmDelete = false;
|
46 |
+
dispatch("deleteConversation", conv.id);
|
47 |
+
}}
|
48 |
>
|
49 |
<CarbonCheckmark class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
|
50 |
</button>
|
|
|
52 |
type="button"
|
53 |
class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex"
|
54 |
title="Cancel delete action"
|
55 |
+
on:click|preventDefault={() => (confirmDelete = false)}
|
|
|
|
|
56 |
>
|
57 |
<CarbonClose class="text-xs text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" />
|
58 |
</button>
|