mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user