فهرست منبع

fix disabled condition

Yuki Takei 5 سال پیش
والد
کامیت
f8954df2c6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/client/js/components/Navbar/PageEditorModeManager.jsx

+ 1 - 1
src/client/js/components/Navbar/PageEditorModeManager.jsx

@@ -85,7 +85,7 @@ function PageEditorModeManager(props) {
         {(!isDeviceSmallerThanMd || editorMode === 'view') && showHackmdBtn && (
           <PageEditorModeButtonWrapper
             editorMode={editorMode}
-            isBtnDisabled={isBtnDisabled || !isHackmdEnabled}
+            isBtnDisabled={isBtnDisabled}
             onClick={pageEditorModeButtonClickedHandler}
             targetMode="hackmd"
             icon={<i className="fa fa-file-text-o" />}