mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 15:10:59 +08:00
fix: Duplicate dialog when clearing messages (#10721)
This commit is contained in:
parent
b74655651d
commit
c457d4a868
@ -288,13 +288,7 @@ export const Topics: React.FC<Props> = ({ assistant: _assistant, activeTopic, se
|
|||||||
label: t('chat.topics.clear.title'),
|
label: t('chat.topics.clear.title'),
|
||||||
key: 'clear-messages',
|
key: 'clear-messages',
|
||||||
icon: <BrushCleaning size={14} />,
|
icon: <BrushCleaning size={14} />,
|
||||||
async onClick() {
|
onClick: () => onClearMessages(topic)
|
||||||
window.modal.confirm({
|
|
||||||
title: t('chat.input.clear.content'),
|
|
||||||
centered: true,
|
|
||||||
onOk: () => onClearMessages(topic)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('settings.topic.position.label'),
|
label: t('settings.topic.position.label'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user