|
|
@@ -14,6 +14,7 @@ import { DropdownItem } from 'reactstrap';
|
|
|
import { exportAsMarkdown, updateContentWidth, useUpdateStateAfterSave } from '~/client/services/page-operation';
|
|
|
import { apiPost } from '~/client/util/apiv1-client';
|
|
|
import { toastSuccess, toastError } from '~/client/util/toastr';
|
|
|
+import { usePageBulkExportSelectModal } from '~/features/page-bulk-export/client/stores/modal';
|
|
|
import { OnDuplicatedFunction, OnRenamedFunction, OnDeletedFunction } from '~/interfaces/ui';
|
|
|
import {
|
|
|
useCurrentPathname,
|
|
|
@@ -33,6 +34,7 @@ import {
|
|
|
useIsAbleToChangeEditorMode, useIsAbleToShowPageAuthors,
|
|
|
} from '~/stores/ui';
|
|
|
|
|
|
+
|
|
|
import CreateTemplateModal from '../CreateTemplateModal';
|
|
|
import AttachmentIcon from '../Icons/AttachmentIcon';
|
|
|
import HistoryIcon from '../Icons/HistoryIcon';
|
|
|
@@ -85,6 +87,7 @@ const PageOperationMenuItems = (props: PageOperationMenuItemsProps): JSX.Element
|
|
|
|
|
|
const { open: openPresentationModal } = usePagePresentationModal();
|
|
|
const { open: openAccessoriesModal } = usePageAccessoriesModal();
|
|
|
+ const { open: openPageBulkExportSelectModal } = usePageBulkExportSelectModal();
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
@@ -106,7 +109,16 @@ const PageOperationMenuItems = (props: PageOperationMenuItemsProps): JSX.Element
|
|
|
className="grw-page-control-dropdown-item"
|
|
|
>
|
|
|
<i className="icon-fw icon-cloud-download grw-page-control-dropdown-icon"></i>
|
|
|
- {t('export_bulk.export_page_markdown')}
|
|
|
+ {t('page_export.export_page_markdown')}
|
|
|
+ </DropdownItem>
|
|
|
+
|
|
|
+ {/* Bulk export */}
|
|
|
+ <DropdownItem
|
|
|
+ onClick={openPageBulkExportSelectModal}
|
|
|
+ className="grw-page-control-dropdown-item"
|
|
|
+ >
|
|
|
+ <i className="icon-fw icon-cloud-download grw-page-control-dropdown-icon"></i>
|
|
|
+ {t('page_export.bulk_export')}
|
|
|
</DropdownItem>
|
|
|
|
|
|
<DropdownItem divider />
|