balibabu
commited on
Commit
·
036a97a
1
Parent(s):
614a413
fix: hide web crawl menu item (#1110)
Browse files### 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)
web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx
CHANGED
|
@@ -34,10 +34,10 @@ interface IProps {
|
|
| 34 |
}
|
| 35 |
|
| 36 |
const DocumentToolbar = ({
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
}: IProps) => {
|
| 42 |
const { t } = useTranslate('knowledgeDetails');
|
| 43 |
const { fetchDocumentList } = useFetchDocumentListOnMount();
|
|
@@ -66,18 +66,18 @@ const DocumentToolbar = ({
|
|
| 66 |
),
|
| 67 |
},
|
| 68 |
{ type: 'divider' },
|
| 69 |
-
{
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
},
|
| 81 |
{ type: 'divider' },
|
| 82 |
{
|
| 83 |
key: '3',
|
|
@@ -92,7 +92,7 @@ const DocumentToolbar = ({
|
|
| 92 |
),
|
| 93 |
},
|
| 94 |
];
|
| 95 |
-
}, [showDocumentUploadModal,
|
| 96 |
|
| 97 |
const handleDelete = useCallback(() => {
|
| 98 |
showDeleteConfirm({
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
const DocumentToolbar = ({
|
| 37 |
+
selectedRowKeys,
|
| 38 |
+
showCreateModal,
|
| 39 |
+
showWebCrawlModal,
|
| 40 |
+
showDocumentUploadModal,
|
| 41 |
}: IProps) => {
|
| 42 |
const { t } = useTranslate('knowledgeDetails');
|
| 43 |
const { fetchDocumentList } = useFetchDocumentListOnMount();
|
|
|
|
| 66 |
),
|
| 67 |
},
|
| 68 |
{ type: 'divider' },
|
| 69 |
+
// {
|
| 70 |
+
// key: '2',
|
| 71 |
+
// onClick: showWebCrawlModal,
|
| 72 |
+
// label: (
|
| 73 |
+
// <div>
|
| 74 |
+
// <Button type="link">
|
| 75 |
+
// <FileTextOutlined />
|
| 76 |
+
// {t('webCrawl')}
|
| 77 |
+
// </Button>
|
| 78 |
+
// </div>
|
| 79 |
+
// ),
|
| 80 |
+
// },
|
| 81 |
{ type: 'divider' },
|
| 82 |
{
|
| 83 |
key: '3',
|
|
|
|
| 92 |
),
|
| 93 |
},
|
| 94 |
];
|
| 95 |
+
}, [showDocumentUploadModal, showCreateModal, t]);
|
| 96 |
|
| 97 |
const handleDelete = useCallback(() => {
|
| 98 |
showDeleteConfirm({
|