Browse Source

Merge pull request #303 from leedom92/add-confirm-when-remove-chatitem

feat: add confirm tips when deleting conversation on pc
Yifei Zhang 1 year ago
parent
commit
e6b64b0f2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/components/home.tsx

+ 1 - 1
app/components/home.tsx

@@ -121,7 +121,7 @@ export function ChatList() {
           key={i}
           selected={i === selectedIndex}
           onClick={() => selectSession(i)}
-          onDelete={() => removeSession(i)}
+          onDelete={() => confirm(Locale.Home.DeleteChat) && removeSession(i)}
         />
       ))}
     </div>