Explorar el Código

add !isPageInTrash

zahmis hace 5 años
padre
commit
acbe66e25c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/client/js/components/Navbar/GrowiSubNavigation.jsx

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

@@ -196,7 +196,8 @@ const GrowiSubNavigation = (props) => {
             { !isPageNotFound && !isPageForbidden && <PageManagement /> }
           </div>
           <div className="mt-2">
-            { !isCreatable && <ThreeStrandedButton onThreeStrandedButtonClicked={onThreeStrandedButtonClicked} isBtnDisabled={currentUser == null} />}
+            { !isCreatable && !isPageInTrash
+            && <ThreeStrandedButton onThreeStrandedButtonClicked={onThreeStrandedButtonClicked} isBtnDisabled={currentUser == null} />}
           </div>
         </div>