SetUpComponent not being called for topic list tags plugin outlet


(Net Deamon) #1

If I add a plugin outlet in list item,
ie <plugin name>/assests/javascripts/discourse/templates/list/connectors/topic-list-tags/<unique name>.raw.hbs

Where should I add the js.es6 file for this outlet?

I tried it in following location, but it didnt work

ie <plugin name>/assests/javascripts/discourse/list/connectors/topic-list-tags/<unique-name>.js.es6

export default {
  setupComponent(args, component) {
....
  }
}

(Alan Tan) #2

The topic-list-tags plugin outlet has been removed in

I believe you can add tags to the list via the plugin-api


(Net Deamon) #3

Thanks for your reply. I see there is another plugin outlet “topic-list-after-title”.
I added the raw.hbs file in the “topic-list-after-title” folder. I added some test text in the raw.hbs file, and I was able to view the same in the discourse site.

But as mentioned here , if we add corresponding js.es6 file and

export default {
  setupComponent(args, component) {
    component.set('today', new Date());
  }
}

the setUpComponent will be called before rending the hbs connector file.

But in my case, I am able to view the text, but the above function is not called.

raw.hbs file location : my-plugin/javascripts/discourse/templates/connectors/topic-list-after-title/test-topic-list-after-title.raw.hbs

js.es6 file location : my-plugin/javascripts/discourse/connectors/topic-list-after-title/test-topic-list-after-title.js.es6


What is the difference between raw.hbs handlerbar files and only .hbs handlerbar files?