app/views/decidim/comments/comments/create.js.erb in decidim-comments-0.27.2 vs app/views/decidim/comments/comments/create.js.erb in decidim-comments-0.27.3

- old
+ new

@@ -5,9 +5,13 @@ var $comments = $("#" + rootCommentableId); var component = $comments.data("comments"); if (inReplyTo) { component.addReply(inReplyTo, commentHtml, true); + + var hideButton = $("#comment_" + <%= root_comment.id %>).find(".comment__hide").first(); + hideButton.find(".show-comment-replies").first().html('<%= t("decidim.components.comment.show_replies", count: Decidim::Comments::SortedComments.for(root_comment.reload).size) %>'); + hideButton.removeClass("hide"); } else { component.addThread(commentHtml, true); } // Update the comments count