forked from XiaoMo/ChatGPT-Next-Web
Merge pull request #303 from leedom92/add-confirm-when-remove-chatitem
feat: add confirm tips when deleting conversation on pc
This commit is contained in:
commit
e6b64b0f2c
@ -121,7 +121,7 @@ export function ChatList() {
|
|||||||
key={i}
|
key={i}
|
||||||
selected={i === selectedIndex}
|
selected={i === selectedIndex}
|
||||||
onClick={() => selectSession(i)}
|
onClick={() => selectSession(i)}
|
||||||
onDelete={() => removeSession(i)}
|
onDelete={() => confirm(Locale.Home.DeleteChat) && removeSession(i)}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user