Skip to content

Commit

Permalink
fix: hide web crawl menu item (infiniflow#1110)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

fix: hide web crawl menu item infiniflow#1107

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Jun 11, 2024
1 parent a09c21c commit 991b342
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ interface IProps {
}

const DocumentToolbar = ({
selectedRowKeys,
showCreateModal,
showWebCrawlModal,
showDocumentUploadModal,
selectedRowKeys,
showCreateModal,
showWebCrawlModal,
showDocumentUploadModal,
}: IProps) => {
const { t } = useTranslate('knowledgeDetails');
const { fetchDocumentList } = useFetchDocumentListOnMount();
Expand Down Expand Up @@ -66,18 +66,18 @@ const DocumentToolbar = ({
),
},
{ type: 'divider' },
{
key: '2',
onClick: showWebCrawlModal,
label: (
<div>
<Button type="link">
<FileTextOutlined />
{t('webCrawl')}
</Button>
</div>
),
},
// {
// key: '2',
// onClick: showWebCrawlModal,
// label: (
// <div>
// <Button type="link">
// <FileTextOutlined />
// {t('webCrawl')}
// </Button>
// </div>
// ),
// },
{ type: 'divider' },
{
key: '3',
Expand All @@ -92,7 +92,7 @@ const DocumentToolbar = ({
),
},
];
}, [showDocumentUploadModal, showWebCrawlModal, showCreateModal, t]);
}, [showDocumentUploadModal, showCreateModal, t]);

const handleDelete = useCallback(() => {
showDeleteConfirm({
Expand Down

0 comments on commit 991b342

Please sign in to comment.