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

placed the threeStrandedButton to notFound page

白石誠 5 лет назад
Родитель
Сommit
8238ab62c7
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      src/client/js/components/Navbar/GrowiSubNavigation.jsx

+ 5 - 4
src/client/js/components/Navbar/GrowiSubNavigation.jsx

@@ -145,19 +145,20 @@ const GrowiSubNavigation = (props) => {
   const isUserPage = pageUser != null;
   const isPageInTrash = isTrashPage(path);
 
+  function onThreeStrandedButtonClicked(viewType) {
+    navigationContainer.setEditorMode(viewType);
+  }
+
   // Display only the RevisionPath
   if (isPageNotFound || isPageForbidden) {
     return (
       <div className="grw-subnav d-flex align-items-center justify-content-between">
         <PagePathNav pageId={pageId} pagePath={path} isPageForbidden={isPageForbidden} />
+        <ThreeStrandedButton onThreeStrandedButtonClicked={onThreeStrandedButtonClicked} />
       </div>
     );
   }
 
-  function onThreeStrandedButtonClicked(viewType) {
-    navigationContainer.setEditorMode(viewType);
-  }
-
   return (
     <div className={`grw-subnav d-flex align-items-center justify-content-between ${isCompactMode ? 'grw-subnav-compact d-print-none' : ''}`}>