confirmClick for dropdown + btm actions resetChat
3clyp50 committed
Jan 6, 2026 at 01:45 UTC
2d8054e5dd071f0b6c317027565e69236b32e297
2 files changed
+2
-2
webui/components/chat/input/bottom-actions.html
+1
-1
@@ -25,7 +25,7 @@
25
<span x-text="$store.chatInput.paused ? 'Resume Agent' : 'Pause Agent'"></span>
26
</button>
27
28
- <button class="text-button" @click="$store.chats.resetChat()" :disabled="!$store.chats.selected">
28
+ <button class="text-button" @click="$confirmClick($event, () => $store.chats.resetChat())" :disabled="!$store.chats.selected">
29
<span class="material-symbols-outlined">delete_sweep</span>
30
<p>Clear Chat</p>
31
</button>
webui/components/sidebar/top-section/quick-actions.html
+1
-1
@@ -85,7 +85,7 @@
85
<span>Save Chat</span>
86
</button>
87
88
- <button class="dropdown-item" @click="$store.chats.resetChat(); dropdownOpen = false" :disabled="!$store.chats.selected">
88
+ <button class="dropdown-item" @click="$confirmClick($event, () => { $store.chats.resetChat(); dropdownOpen = false })" :disabled="!$store.chats.selected">
89
<span class="material-symbols-outlined">delete_sweep</span>
90
<span>Clear Chat</span>
91
</button>