🐛 fix: when the document filetype is agent/plan, not show the saveinto docs button (#11227)

fix: when the document filetype is agent/plan, not show the saveinto docs button
This commit is contained in:
Shinji-Li
2026-01-05 15:01:50 +08:00
committed by GitHub
parent dd022d54d8
commit 3a22f32c87

View File

@@ -61,15 +61,17 @@ const Header = () => {
</Flexbox>
<Flexbox align={'center'} gap={8} horizontal>
<AutoSaveHint />
<Button
icon={<ExternalLink size={14} />}
loading={loading}
onClick={handleOpenInPageEditor}
size={'small'}
type={'text'}
>
{t('openInPageEditor')}
</Button>
{document.fileType !== 'agent/plan' && (
<Button
icon={<ExternalLink size={14} />}
loading={loading}
onClick={handleOpenInPageEditor}
size={'small'}
type={'text'}
>
{t('openInPageEditor')}
</Button>
)}
</Flexbox>
</Flexbox>
);