Using a Discourse component in a plugin

Doh! That resolved it. It works! Thanks for sticking with me on this one.

Here’s a screen of this. You can see the sign up button in the background.

Just for clarification purposes and for anyone who wants to submit a PR for their specific case, this is the setup:

discourse/app/assets/javascripts/discourse/controllers/static.js.es6

showCreate(){
  this.send("showCreateAccount");
}

discourse/app/assets/javascripts/discourse/templates/static.hbs

{{plugin-outlet name="above-static" args=(hash model=model showCreateAccount=(action "showCreate"))}}

my-plugin/assets/javascripts/discourse/templates/connectors/above-static/temp.hbs

{{d-button action=showCreateAccount class="btn-primary btn-large sign-up-button" label="signup_cta.sign_up" }}
5 „Gefällt mir“