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

add guest user mode for history pane

takeru0001 5 лет назад
Родитель
Сommit
085e5a4f5c
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/client/js/components/PageAccessoriesModal.jsx

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

@@ -107,11 +107,11 @@ const PageAccessoriesModal = (props) => {
             <TabPane tabId="timeline">
               {activeComponents.has('timeline') && <PageTimeline /> }
             </TabPane>
-            <TabPane tabId="pageHistory">
-              <div className="overflow-auto">
+            {!isGuestUserMode && (
+              <TabPane tabId="pageHistory">
                 {activeComponents.has('pageHistory') && <PageHistory /> }
-              </div>
-            </TabPane>
+              </TabPane>
+            )}
             <TabPane tabId="attachment">
               {activeComponents.has('attachment') && <PageAttachment />}
             </TabPane>