In a plugin that changes who can send PMs, I am trying to add a button to the profile page when the user does not have permission to send a PM. I can add text right where I want it by putting stuff in
I see that discourse/messages.hbs at master · discourse/discourse · GitHub uses
I’d like to use that in
my-clever-name.hbs, but that variable isn’t defined.
I think that maybe I need to create a
my-clever-name.js.es6 in the same directory as my
hbs file and include . . . something, and/or add some code that defines that variable so that I can access it, but I’ve re-read the developer’s guide a few times as well as tried to mimic code in some plugins that seem like they’re doing the same, but don’t see just how to do that.