浏览代码

fix: hide web crawl menu item (#1110)

### What problem does this PR solve?

fix: hide web crawl menu item #1107

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.8.0
balibabu 1年前
父节点
当前提交
97ced2f667
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 17 次插入17 次删除
  1. 17
    17
      web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx

+ 17
- 17
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({

正在加载...
取消
保存