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

Merge pull request #2915 from weseek/imprv/hide-three-stranded-button-in-trash-page

add !isPageInTrash
Yuki Takei 5 лет назад
Родитель
Сommit
285bb0fa8e
1 измененных файлов с 2 добавлено и 1 удалено
  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>