This commit is contained in:
josc146 2023-06-28 20:49:41 +08:00
parent 32c386799d
commit 87a86042d2
2 changed files with 3 additions and 4 deletions

View File

@ -122,7 +122,7 @@ export const MessagesEditor: FC = observer(() => {
}}>
<Option value="user">{t('user')!}</Option>
<Option value="assistant">{t('assistant')!}</Option>
<Option value="system">{t('system')!}</Option>
{/* TODO <Option value="system">{t('system')!}</Option>*/}
</Dropdown>
<Textarea resize="vertical" className="grow" value={item.content}
style={{ minWidth: 0, borderRadius: 0 }}

View File

@ -248,10 +248,9 @@ export const ChatPresetEditor: FC<{
name: data.value
});
}} />
<ToolTipButton desc={!editingMessages ? t('Edit Messages') : t('Go Back')}
icon={!editingMessages ? <Chat20Regular /> : <Dismiss20Regular />} onClick={() => {
<Button onClick={() => {
setEditingMessages(!editingMessages);
}} />
}}>{!editingMessages ? t('Edit Messages') : t('Go Back')}</Button>
</div>
} />
{