Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#303 from leedom92/add-confirm-when-…
Browse files Browse the repository at this point in the history
…remove-chatitem

feat: add confirm tips when deleting conversation on pc
  • Loading branch information
Yidadaa authored Apr 1, 2023
2 parents cdb2e9d + 238f77b commit 5d35775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 5d35775

Please sign in to comment.