Browse Source

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

feat: add confirm tips when deleting conversation on pc
Yifei Zhang 2 năm trước cách đây
mục cha
commit
e6b64b0f2c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>