Browse Source

hide pagemanagement button

yohei0125 4 năm trước cách đây
mục cha
commit
0a5b757a6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/app/src/components/Navbar/GrowiSubNavigation.jsx

+ 1 - 1
packages/app/src/components/Navbar/GrowiSubNavigation.jsx

@@ -50,7 +50,7 @@ const GrowiSubNavigation = (props) => {
   // Tags cannot be edited while the new page and editorMode is view
   const isTagLabelHidden = (editorMode !== EditorMode.Editor && !isPageExist);
 
-  const isAbleToShowPageManagement = isPageExist && !isTrashPage && !isSharedUser;
+  const isAbleToShowPageManagement = isPageExist && !isTrashPage && !isSharedUser && !isEditorMode;
   function onPageEditorModeButtonClicked(viewType) {
     mutateEditorMode(viewType);
   }