A platform for community discussion. Free, open, simple.
Add event for when "Reply" is clicked
Robin Ward5c9acfec1df4
diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6index 6cb4ecf0bee..010b60707dc 100644--- a/app/assets/javascripts/discourse/controllers/topic.js.es6+++ b/app/assets/javascripts/discourse/controllers/topic.js.es6@@ -471,6 +471,8 @@ export default Ember.Controller.extend(bufferedProperty("model"), {const quoteState = this.quoteState;const postStream = this.get("model.postStream");+ this.appEvents.trigger("page:compose-reply", topic);+if (!postStream || !topic || !topic.get("details.can_create_post")) {return;}