Important changes to Plugin Outlets for Ember 2.10

Okay I’ve addeed a Plugin API (version 0.6) to register a connector class. If you’re writing a full plugin I recommend you don’t use this and let the connector class be automatically resolved, but if you’re using a customization this will work:

https://github.com/discourse/discourse/commit/250ca114167ca10701cd1dded33f2f4b37ac29a3

Sample:

api.registerConnectorClass('user-profile-primary', 'my-connector', {
  shouldRender(args, component) {
    return component.siteSettings.my_plugin_enabled;
  }
});