Hi, I wanted to add additionally functionality through a plugin.
I added a topic controller at plugins/xx/assets/javascripts/discourse/controllers/topic.js.es6
and I have
import TopicController from 'discourse/controllers/topic';
export default TopicController.reopen({
actions: {
own_actions:function() { debugger; };
}
});
when I tried to call the action from my topic.hbs template, it says action own_action is not found. is theer anything I would have to do to initialize this controller?