Shun Miyazawa 3 лет назад
Родитель
Сommit
016aa0fb3b

+ 8 - 6
packages/app/src/components/Admin/MarkdownSetting/WhiteListInput.jsx

@@ -24,13 +24,13 @@ class WhiteListInput extends React.Component {
   }
   }
 
 
   onClickRecommendTagButton() {
   onClickRecommendTagButton() {
-    this.tagWhiteList.current.value = this.tags;
-    this.props.adminMarkDownContainer.setState({ tagWhiteList: this.tags });
+    // this.tagWhiteList.current.value = this.tags;
+    // this.props.adminMarkDownContainer.setState({ tagWhiteList: this.tags });
   }
   }
 
 
   onClickRecommendAttrButton() {
   onClickRecommendAttrButton() {
-    this.attrWhiteList.current.value = this.attrs;
-    this.props.adminMarkDownContainer.setState({ attrWhiteList: this.attrs });
+    // this.attrWhiteList.current.value = this.attrs;
+    // this.props.adminMarkDownContainer.setState({ attrWhiteList: this.attrs });
   }
   }
 
 
   render() {
   render() {
@@ -41,11 +41,12 @@ class WhiteListInput extends React.Component {
         <div className="mt-4">
         <div className="mt-4">
           <div className="d-flex justify-content-between">
           <div className="d-flex justify-content-between">
             {t('markdown_settings.xss_options.tag_names')}
             {t('markdown_settings.xss_options.tag_names')}
-            <p id="btn-import-tags" className="btn btn-sm btn-primary mb-0" onClick={this.onClickRecommendTagButton}>
+            <p id="btn-import-tags" className="btn btn-sm btn-primary mb-0 disabled" onClick={this.onClickRecommendTagButton}>
               {t('markdown_settings.xss_options.import_recommended', { target: 'Tags' })}
               {t('markdown_settings.xss_options.import_recommended', { target: 'Tags' })}
             </p>
             </p>
           </div>
           </div>
           <textarea
           <textarea
+            disabled
             className="form-control xss-list"
             className="form-control xss-list"
             name="recommendedTags"
             name="recommendedTags"
             rows="6"
             rows="6"
@@ -58,11 +59,12 @@ class WhiteListInput extends React.Component {
         <div className="mt-4">
         <div className="mt-4">
           <div className="d-flex justify-content-between">
           <div className="d-flex justify-content-between">
             {t('markdown_settings.xss_options.tag_attributes')}
             {t('markdown_settings.xss_options.tag_attributes')}
-            <p id="btn-import-tags" className="btn btn-sm btn-primary mb-0" onClick={this.onClickRecommendAttrButton}>
+            <p id="btn-import-tags" className="btn btn-sm btn-primary mb-0 disabled" onClick={this.onClickRecommendAttrButton}>
               {t('markdown_settings.xss_options.import_recommended', { target: 'Attrs' })}
               {t('markdown_settings.xss_options.import_recommended', { target: 'Attrs' })}
             </p>
             </p>
           </div>
           </div>
           <textarea
           <textarea
+            disabled
             className="form-control xss-list"
             className="form-control xss-list"
             name="recommendedAttrs"
             name="recommendedAttrs"
             rows="6"
             rows="6"

+ 1 - 0
packages/app/src/components/Admin/MarkdownSetting/XssForm.jsx

@@ -93,6 +93,7 @@ class XssForm extends React.Component {
           <div className="col-md-6 col-sm-12 align-self-start mb-4">
           <div className="col-md-6 col-sm-12 align-self-start mb-4">
             <div className="custom-control custom-radio">
             <div className="custom-control custom-radio">
               <input
               <input
+                disabled
                 type="radio"
                 type="radio"
                 className="custom-control-input"
                 className="custom-control-input"
                 id="xssOption2"
                 id="xssOption2"