Răsfoiți Sursa

GW-3299 changed name
from 'recent-changes' to 'page-history'

YAN Guanyu 5 ani în urmă
părinte
comite
2d35ef2d0c

+ 4 - 4
src/client/js/components/PageAccessoriesModal.jsx

@@ -55,10 +55,10 @@ const PageAccessoriesModal = (props) => {
                 {t('Timeline View')}
               </NavLink>
             </NavItem>
-            <NavItem type="button" className={`nav-link ${activeTab === 'recent-changes' && 'active active-border'}`}>
+            <NavItem type="button" className={`nav-link ${activeTab === 'page-history' && 'active active-border'}`}>
               <NavLink
                 onClick={() => {
-                  switchActiveTab('recent-changes');
+                  switchActiveTab('page-history');
                 }}
               >
                 <RecentChangesIcon />
@@ -81,9 +81,9 @@ const PageAccessoriesModal = (props) => {
               {pageAccessoriesContainer.state.activeComponents.has('pagelist') && <PageList />}
             </TabPane>
             <TabPane tabId="timeline"></TabPane>
-            <TabPane tabId="recent-changes">
+            <TabPane tabId="page-history">
               <div className="overflow-auto">
-                {pageAccessoriesContainer.state.activeComponents.has('recent-changes') && <PageHistory /> }
+                {pageAccessoriesContainer.state.activeComponents.has('page-history') && <PageHistory /> }
               </div>
             </TabPane>
             <TabPane tabId="attachment" className="p-4">

+ 1 - 1
src/client/js/components/TopOfTableContents.jsx

@@ -39,7 +39,7 @@ const TopOfTableContents = (props) => {
           <TimeLineIcon />
         </button>
 
-        <button type="button" className="bg-transparent border-0" onClick={() => pageAccessoriesContainer.openPageAccessoriesModal('recent-changes')}>
+        <button type="button" className="bg-transparent border-0" onClick={() => pageAccessoriesContainer.openPageAccessoriesModal('page-history')}>
           <RecentChangesIcon />
         </button>