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

Merge branch 'feat/article-area-renovation' into fix/hide-Create-Page-in-forbidden-page

zahmis 5 лет назад
Родитель
Сommit
2831ab1957
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/client/js/components/Navbar/GrowiSubNavigation.jsx

+ 3 - 1
src/client/js/components/Navbar/GrowiSubNavigation.jsx

@@ -147,6 +147,8 @@ const GrowiSubNavigation = (props) => {
   const isUserPage = pageUser != null;
   const isPageInTrash = isTrashPage(path);
 
+  console.log(isPageForbidden);
+
   function onThreeStrandedButtonClicked(viewType) {
     navigationContainer.setEditorMode(viewType);
   }
@@ -193,7 +195,7 @@ const GrowiSubNavigation = (props) => {
             { !isPageNotFound && !isPageForbidden && <PageManagement /> }
           </div>
           <div className="mt-2">
-            { !isCreatable && !isPageInTrash
+            { !isCreatable && !isPageInTrash && !isPageForbidden
             && (
             <ThreeStrandedButton
               onThreeStrandedButtonClicked={onThreeStrandedButtonClicked}