Browse Source

feat: add confirm tips when deleting conversation on pc

leedom 1 year ago
parent
commit
4dc1e025e1
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>