Просмотр исходного кода

remove revisionCompare tab item

Ryu Sato 5 лет назад
Родитель
Сommit
283b639925

+ 2 - 14
src/client/js/components/PageAccessoriesModal.jsx

@@ -18,7 +18,6 @@ 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';
@@ -51,21 +50,15 @@ const PageAccessoriesModal = (props) => {
         index: 2,
         isLinkEnabled: v => !isGuestUser && !isSharedUser,
       },
-      revisionCompare: {
-        Icon: HistoryIcon,
-        i18n: t('page_compare_revision.comparing_changes'),
-        index: 3,
-        isLinkEnabled: v => !isGuestUser && !isSharedUser,
-      },
       attachment: {
         Icon: AttachmentIcon,
         i18n: t('attachment_data'),
-        index: 4,
+        index: 3,
       },
       shareLink: {
         Icon: ShareLinkIcon,
         i18n: t('share_links.share_link_management'),
-        index: 5,
+        index: 4,
         isLinkEnabled: v => !isGuestUser && !isSharedUser,
       },
     };
@@ -131,11 +124,6 @@ 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>

+ 0 - 6
src/client/js/components/PageAccessoriesModalControl.jsx

@@ -40,12 +40,6 @@ const PageAccessoriesModalControl = (props) => {
         disabled: isGuestUser || isSharedUser,
         i18n: t('History'),
       },
-      {
-        name: 'revisionCompare',
-        Icon: <HistoryIcon />,
-        disabled: isGuestUser || isSharedUser,
-        i18n: t('page_compare_revision.comparing_changes'),
-      },
       {
         name: 'attachment',
         Icon: <AttachmentIcon />,