|
|
@@ -100,6 +100,23 @@ const PageManagement = (props) => {
|
|
|
// setIsArchiveCreateModalShown(false);
|
|
|
// }
|
|
|
|
|
|
+ function renderDropdownItemForTopPage() {
|
|
|
+ return (
|
|
|
+ <>
|
|
|
+ <button className="dropdown-item" type="button" onClick={openPageDuplicateModalHandler}>
|
|
|
+ <i className="icon-fw icon-docs"></i> { t('Duplicate') }
|
|
|
+ </button>
|
|
|
+ <button className="dropdown-item" type="button" onClick={openPagePresentationModalHandler}>
|
|
|
+ <i className="icon-fw"><PresentationIcon /></i><span className="d-none d-sm-inline"> { t('Presentation Mode') }</span>
|
|
|
+ </button>
|
|
|
+ <button type="button" className="dropdown-item" onClick={() => { exportPageHandler('md') }}>
|
|
|
+ <i className="icon-fw icon-cloud-download"></i>{t('export_bulk.export_page_markdown')}
|
|
|
+ </button>
|
|
|
+ <div className="dropdown-divider"></div>
|
|
|
+ </>
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
function renderDropdownItemForNotTopPage() {
|
|
|
return (
|
|
|
<>
|
|
|
@@ -206,7 +223,7 @@ const PageManagement = (props) => {
|
|
|
<>
|
|
|
{currentUser == null ? renderDotsIconForGuestUser() : renderDotsIconForCurrentUser()}
|
|
|
<div className="dropdown-menu dropdown-menu-right">
|
|
|
- {!isTopPagePath && renderDropdownItemForNotTopPage()}
|
|
|
+ {isTopPagePath ? renderDropdownItemForTopPage() : renderDropdownItemForNotTopPage()}
|
|
|
<button className="dropdown-item" type="button" onClick={openPageTemplateModalHandler}>
|
|
|
<i className="icon-fw icon-magic-wand"></i> { t('template.option_label.create/edit') }
|
|
|
</button>
|