Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: hide web crawl menu item (#1110)

balibabu97ced2f66746
diff --git a/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx b/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx
index 11ddeb779d..1ffe7d1fba 100644
--- a/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx
+++ b/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx
@@ -34,10 +34,10 @@ interface IProps {
}
const DocumentToolbar = ({
- selectedRowKeys,
- showCreateModal,
- showWebCrawlModal,
- showDocumentUploadModal,
+ selectedRowKeys,
+ showCreateModal,
+ showWebCrawlModal,
+ showDocumentUploadModal,
}: IProps) => {
const { t } = useTranslate('knowledgeDetails');
const { fetchDocumentList } = useFetchDocumentListOnMount();
@@ -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',
@@ -92,7 +92,7 @@ const DocumentToolbar = ({
),
},
];
- }, [showDocumentUploadModal, showWebCrawlModal, showCreateModal, t]);
+ }, [showDocumentUploadModal, showCreateModal, t]);
const handleDelete = useCallback(() => {
showDeleteConfirm({