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

Merge remote-tracking branch 'origin/feat/post-comment-notification' into feat/post-comment-notification

sou 7 лет назад
Родитель
Сommit
ff92d82a54

+ 2 - 8
resource/js/components/PageComment/CommentForm.js

@@ -64,15 +64,9 @@ export default class CommentForm extends React.Component {
 
   updateStateCheckbox(event) {
     const value = event.target.checked;
-    const name = event.target.name;
-    if (name === 'isMarkdown') {
-      this.setState({isMarkdown: value});
+    this.setState({isMarkdown: value});
       // changeMode
-      this.refs.editor.setGfmMode(value);
-    }
-    if ( name === 'slack') {
-      this.setState({isNotification: value});
-    }
+    this.refs.editor.setGfmMode(value);
   }
 
   handleSelect(key) {

+ 2 - 2
resource/styles/agile-admin/inverse/colors/_apply-colors-dark.scss

@@ -154,7 +154,7 @@ legend {
 /*
  * GROWI admin page #themeOptions
  */
- .admin-page {
+.admin-page {
   #themeOptions {
     a.active {
       background-color: darken($themecolor,15%);
@@ -166,7 +166,7 @@ legend {
 /*
  * GROWI comment form
  */
- .comment-form {
+.comment-form {
   #slack-mark-black {
     display: none;
   }

+ 2 - 2
resource/styles/agile-admin/inverse/colors/_apply-colors-light.scss

@@ -70,7 +70,7 @@
 /*
  * GROWI admin page #themeOptions
  */
- .admin-page {
+.admin-page {
   #themeOptions {
     a.active {
       background-color: lighten($themecolor,20%);
@@ -82,7 +82,7 @@
 /*
  * GROWI comment form
  */
- .comment-form {
+.comment-form {
   #slack-mark-white {
     display: none;
   }