Skip to content

A platform for community discussion. Free, open, simple.

FIX: define actions on connector class early (#6763)

Joffrey JAFFEUX5cb99d08ed46
diff --git a/app/assets/javascripts/discourse/components/plugin-connector.js.es6 b/app/assets/javascripts/discourse/components/plugin-connector.js.es6
index bd1eabac9c6..4d0ece9c6f2 100644
--- a/app/assets/javascripts/discourse/components/plugin-connector.js.es6
+++ b/app/assets/javascripts/discourse/components/plugin-connector.js.es6
@@ -12,6 +12,8 @@ export default Ember.Component.extend({
const connectorClass = this.get("connector.connectorClass");
connectorClass.setupComponent.call(this, args, this);
+
+ this.set("actions", connectorClass.actions);
},
@observes("args")