yusuketk 7 лет назад
Родитель
Сommit
c2a261a22d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      resource/js/components/PageComment/CommentForm.js

+ 3 - 3
resource/js/components/PageComment/CommentForm.js

@@ -49,7 +49,7 @@ export default class CommentForm extends React.Component {
     this.init = this.init.bind(this);
     this.init = this.init.bind(this);
     this.updateState = this.updateState.bind(this);
     this.updateState = this.updateState.bind(this);
     this.updateStateCheckbox = this.updateStateCheckbox.bind(this);
     this.updateStateCheckbox = this.updateStateCheckbox.bind(this);
-    this.updateSlackChannel =this.updateSlackChannel.bind(this);
+    this.updateChannel =this.updateChannel.bind(this);
     this.postComment = this.postComment.bind(this);
     this.postComment = this.postComment.bind(this);
     this.renderHtml = this.renderHtml.bind(this);
     this.renderHtml = this.renderHtml.bind(this);
     this.handleSelect = this.handleSelect.bind(this);
     this.handleSelect = this.handleSelect.bind(this);
@@ -104,7 +104,7 @@ export default class CommentForm extends React.Component {
     }
     }
   }
   }
 
 
-  updateSlackChannel(value) {
+  updateChannel(value) {
     this.setState({channel: value})
     this.setState({channel: value})
   }
   }
 
 
@@ -307,7 +307,7 @@ export default class CommentForm extends React.Component {
                         data-content="通知するにはチェックを入れてください。カンマ区切りで複数チャンネルに通知することができます。"
                         data-content="通知するにはチェックを入れてください。カンマ区切りで複数チャンネルに通知することができます。"
                         data-trigger="focus"
                         data-trigger="focus"
                         data-placement="top"
                         data-placement="top"
-                        onChange={e => this.updateSlackChannel(e.target.value)}
+                        onChange={e => this.updateChannel(e.target.value)}
                       />
                       />
                     </span>
                     </span>
                   </div>
                   </div>