disable resetChat on dashboard

3clyp50 committed Jan 4, 2026 at 02:57 UTC ae812f66606416af9ec06ebf3924d07b6c0544dd
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()">
28 + <button class="text-button" @click="$store.chats.resetChat()" :disabled="!$store.chats.selected">
29 <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14">
30 <path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/>
31 </svg>
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">
88 + <button class="dropdown-item" @click="$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>