itizawa 5 tahun lalu
induk
melakukan
0d882ccd93
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/client/js/components/Navbar/GrowiSubNavigation.jsx

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

@@ -144,6 +144,8 @@ const GrowiSubNavigation = (props) => {
 
 
   const { currentUser } = appContainer;
   const { currentUser } = appContainer;
   const isPageNotFound = pageId == null;
   const isPageNotFound = pageId == null;
+  // Tags cannot be edited while the new page and editorMode is view
+  const isTagLabelHidden = (editorMode === 'view' && isPageNotFound);
   const isUserPage = pageUser != null;
   const isUserPage = pageUser != null;
   const isPageInTrash = isTrashPage(path);
   const isPageInTrash = isTrashPage(path);
 
 
@@ -163,7 +165,7 @@ const GrowiSubNavigation = (props) => {
         ) }
         ) }
 
 
         <div className="grw-path-nav-container">
         <div className="grw-path-nav-container">
-          { !isCompactMode && !isPageNotFound && !isPageForbidden && !isUserPage && (
+          { !isCompactMode && !isTagLabelHidden && !isPageForbidden && !isUserPage && (
             <div className="mb-2">
             <div className="mb-2">
               <TagLabels editorMode={editorMode} />
               <TagLabels editorMode={editorMode} />
             </div>
             </div>