Преглед изворни кода

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

zahmis пре 5 година
родитељ
комит
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 isUserPage = pageUser != null;
   const isPageInTrash = isTrashPage(path);
   const isPageInTrash = isTrashPage(path);
 
 
+  console.log(isPageForbidden);
+
   function onThreeStrandedButtonClicked(viewType) {
   function onThreeStrandedButtonClicked(viewType) {
     navigationContainer.setEditorMode(viewType);
     navigationContainer.setEditorMode(viewType);
   }
   }
@@ -193,7 +195,7 @@ const GrowiSubNavigation = (props) => {
             { !isPageNotFound && !isPageForbidden && <PageManagement /> }
             { !isPageNotFound && !isPageForbidden && <PageManagement /> }
           </div>
           </div>
           <div className="mt-2">
           <div className="mt-2">
-            { !isCreatable && !isPageInTrash
+            { !isCreatable && !isPageInTrash && !isPageForbidden
             && (
             && (
             <ThreeStrandedButton
             <ThreeStrandedButton
               onThreeStrandedButtonClicked={onThreeStrandedButtonClicked}
               onThreeStrandedButtonClicked={onThreeStrandedButtonClicked}