itizawa 5 years ago
parent
commit
b8befffdc8

+ 1 - 1
src/client/js/components/Page/NotFoundAlert.jsx

@@ -37,7 +37,7 @@ const NotFoundAlert = (props) => {
         <div id="create-page-btn-wrapper-for-tooltip" className="d-inline-block">
         <div id="create-page-btn-wrapper-for-tooltip" className="d-inline-block">
           <button
           <button
             type="button"
             type="button"
-            className={`pl-3 pr-3 btn bg-info text-white ${isGuestUserMode && 'disabled'}`}
+            className={`pl-3 pr-3 btn bg-info text-white ${isGuestUserMode ? 'disabled' : ''}`}
             onClick={() => { clickHandler('edit') }}
             onClick={() => { clickHandler('edit') }}
           >
           >
             <i className="icon-note icon-fw" />
             <i className="icon-note icon-fw" />

+ 1 - 1
src/client/js/components/Page/RenderTagLabels.jsx

@@ -37,7 +37,7 @@ const RenderTagLabels = React.memo((props) => {
 
 
       <div id="edit-tags-btn-wrapper-for-tooltip">
       <div id="edit-tags-btn-wrapper-for-tooltip">
         <a
         <a
-          className={`btn btn-link btn-edit-tags p-0 text-muted ${isTagsEmpty && 'no-tags'} ${isGuestUser && 'disabled'}`}
+          className={`btn btn-link btn-edit-tags p-0 text-muted ${isTagsEmpty ? 'no-tags' : ''} ${isGuestUser ? 'disabled' : ''}`}
           onClick={openEditorHandler}
           onClick={openEditorHandler}
         >
         >
           { isTagsEmpty && <>{ t('Add tags for this page') }</>}
           { isTagsEmpty && <>{ t('Add tags for this page') }</>}