itizawa 6 лет назад
Родитель
Сommit
552dcd7066

+ 8 - 1
src/client/js/components/PageComment/CommentEditor.jsx

@@ -103,7 +103,14 @@ class CommentEditor extends React.Component {
     }
 
     if (this.props.reEdit) {
-      this.props.commentContainer.putComment();
+      this.props.commentContainer.putComment(
+        this.state.comment,
+        this.state.isMarkdown,
+        this.props.replyTo,
+        this.props.commentContainer.state.isSlackEnabled,
+        this.props.commentContainer.state.slackChannels,
+        this.props.currentComment,
+      );
     }
 
     this.props.commentContainer.postComment(

+ 2 - 2
src/client/js/services/CommentContainer.js

@@ -103,8 +103,8 @@ export default class CommentContainer extends Container {
   /**
    * Load data of comments and rerender <PageComments />
    */
-  putComment() {
-    console.log('ここはCommentContainer');
+  putComment(comment, isMarkdown, replyTo, isSlackEnabled, slackChannels, prevComment) {
+    console.log(prevComment);
   }
 
   deleteComment(comment) {