Using a Discourse component in a plugin

I just dropped this into a handlebars template out of curiosity:

{{d-button action="showCreateAccount" class="btn-primary sign-up-button" label="sign_up"}}

It worked like a charm. It gave me a “Sign Up” button that displayed the account creation modal. Note that this works when the template is specific to the plugin and not through a connector.

That said, if I do the same thing in a handlebars template that is using a plugin-outlet through a connector, it fails. Makes me think the connector templates aren’t inheriting actions from above. @eviltrout, is there any truth to that? That would be good to know. Even templates that have the action available and a plugin-outlet fail when the connector is used.

On another note, try inserting {{signup-cta}} in your handlebars file. See if that’s something you’re interested in.