Split hamburger-menu out into menu-panel

This commit is contained in:
Robin Ward
2015-08-26 15:51:56 -04:00
parent 05adcda1fc
commit 5457684975
14 changed files with 316 additions and 216 deletions

View File

@ -1,3 +1,4 @@
import AppEvents from 'discourse/lib/app-events';
import createStore from 'helpers/create-store';
export default function(name, opts) {
@ -8,8 +9,12 @@ export default function(name, opts) {
const store = createStore();
opts.setup.call(this, store);
}
const appEvents = AppEvents.create();
this.container.register('site-settings:main', Discourse.SiteSettings, { instantiate: false });
this.container.register('app-events:main', appEvents, { instantiate: false });
this.container.injection('component', 'siteSettings', 'site-settings:main');
this.container.injection('component', 'appEvents', 'app-events:main');
andThen(() => {
this.render(opts.template);