|
|
@@ -18,6 +18,7 @@ import PageAttachment from './PageAttachment';
|
|
|
import PageTimeline from './PageTimeline';
|
|
|
import PageList from './PageList';
|
|
|
import PageHistory from './PageHistory';
|
|
|
+import RevisionCompare from './RevisionCompare';
|
|
|
import ShareLink from './ShareLink/ShareLink';
|
|
|
import { CustomNavTab } from './CustomNavigation/CustomNav';
|
|
|
import ExpandOrContractButton from './ExpandOrContractButton';
|
|
|
@@ -50,15 +51,21 @@ const PageAccessoriesModal = (props) => {
|
|
|
index: 2,
|
|
|
isLinkEnabled: v => !isGuestUser && !isSharedUser,
|
|
|
},
|
|
|
+ revisionCompare: {
|
|
|
+ Icon: HistoryIcon,
|
|
|
+ i18n: t('revision_compare'),
|
|
|
+ index: 3,
|
|
|
+ isLinkEnabled: v => !isGuestUser && !isSharedUser,
|
|
|
+ },
|
|
|
attachment: {
|
|
|
Icon: AttachmentIcon,
|
|
|
i18n: t('attachment_data'),
|
|
|
- index: 3,
|
|
|
+ index: 4,
|
|
|
},
|
|
|
shareLink: {
|
|
|
Icon: ShareLinkIcon,
|
|
|
i18n: t('share_links.share_link_management'),
|
|
|
- index: 4,
|
|
|
+ index: 5,
|
|
|
isLinkEnabled: v => !isGuestUser && !isSharedUser,
|
|
|
},
|
|
|
};
|
|
|
@@ -124,6 +131,11 @@ const PageAccessoriesModal = (props) => {
|
|
|
{activeComponents.has('pageHistory') && <PageHistory /> }
|
|
|
</TabPane>
|
|
|
)}
|
|
|
+ {!isGuestUser && (
|
|
|
+ <TabPane tabId="revisionCompare">
|
|
|
+ {activeComponents.has('revisionCompare') && <RevisionCompare /> }
|
|
|
+ </TabPane>
|
|
|
+ )}
|
|
|
<TabPane tabId="attachment">
|
|
|
{activeComponents.has('attachment') && <PageAttachment />}
|
|
|
</TabPane>
|