Agent Zero AI framework
confirmClick for dropdown + btm actions resetChat
3clyp502d8054e5dd07
diff --git a/webui/components/chat/input/bottom-actions.html b/webui/components/chat/input/bottom-actions.htmlindex 7679a8ccd..1353fbbd2 100644--- a/webui/components/chat/input/bottom-actions.html+++ b/webui/components/chat/input/bottom-actions.html@@ -25,7 +25,7 @@<span x-text="$store.chatInput.paused ? 'Resume Agent' : 'Pause Agent'"></span></button>- <button class="text-button" @click="$store.chats.resetChat()" :disabled="!$store.chats.selected">+ <button class="text-button" @click="$confirmClick($event, () => $store.chats.resetChat())" :disabled="!$store.chats.selected"><span class="material-symbols-outlined">delete_sweep</span><p>Clear Chat</p></button>diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.htmlindex 0bbc01310..d45f945ca 100644--- a/webui/components/sidebar/top-section/quick-actions.html+++ b/webui/components/sidebar/top-section/quick-actions.html@@ -85,7 +85,7 @@<span>Save Chat</span></button>- <button class="dropdown-item" @click="$store.chats.resetChat(); dropdownOpen = false" :disabled="!$store.chats.selected">+ <button class="dropdown-item" @click="$confirmClick($event, () => { $store.chats.resetChat(); dropdownOpen = false })" :disabled="!$store.chats.selected"><span class="material-symbols-outlined">delete_sweep</span><span>Clear Chat</span></button>